mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[grazie] Treat code snippets as unknown text fragments
GitOrigin-RevId: 6d8cfda3fd5e7e235a92f2984e82b94eb3e34874
This commit is contained in:
committed by
intellij-monorepo-bot
parent
6b89419cb1
commit
b3fa4de450
+2
-1
@@ -48,7 +48,8 @@ public class JavaTextExtractor extends TextExtractor {
|
||||
if (allowedDomains.contains(DOCUMENTATION)) {
|
||||
if (root instanceof PsiDocComment) {
|
||||
return HtmlUtilsKt.excludeHtml(
|
||||
javadocBuilder.excluding(e -> e instanceof PsiDocTagImpl || e instanceof PsiMarkdownCodeBlock)
|
||||
javadocBuilder.excluding(e -> e instanceof PsiDocTagImpl)
|
||||
.withUnknown(e -> e instanceof PsiMarkdownCodeBlock)
|
||||
.build(root, DOCUMENTATION)
|
||||
);
|
||||
}
|
||||
|
||||
@@ -4,4 +4,11 @@
|
||||
/// void main(String[] args){
|
||||
/// var a = args.length == 1 ? new ArrayList<String>() : new LinkedList<String>();
|
||||
///}
|
||||
///```
|
||||
///```
|
||||
|
||||
/// Returns all [PsiClass]es annotated with `@io.cucumber.java.StepDefinitionAnnotation` (or similar).
|
||||
///
|
||||
/// In practice, this method returns a single list of all language-specific step definition annotations
|
||||
/// - English: `@io.cucumber.java.en.Given`, `@io.cucumber.java.en.When`, `@io.cucumber.java.en.Then`
|
||||
/// - Polish: `@io.cucumber.java.pl.Zakładając`, `@io.cucumber.java.pl.Jeżeli`, `@io.cucumber.java.pl.Wtedy`
|
||||
/// - and so on
|
||||
Reference in New Issue
Block a user