Skip to content

Commit

Permalink
2023.3.2 build
Browse files Browse the repository at this point in the history
  • Loading branch information
Haehnchen committed Jan 14, 2024
1 parent 51180b3 commit c4e38ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 36 deletions.
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ pluginUntilBuild =

# IntelliJ Platform Properties -> https://github.com/JetBrains/gradle-intellij-plugin#intellij-platform-properties
platformType = IU
platformVersion = 2022.3.2
platformVersion = 2023.3.2

# Plugin Dependencies -> https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html
# Example: platformPlugins = com.intellij.java, com.jetbrains.php:203.4449.22
platformPlugins = java,yaml,xpath,webDeployment,JavaScript,com.jetbrains.php:223.8617.59,de.espend.idea.php.annotation:8.3.0,de.espend.idea.php.toolbox:6.1.0,com.jetbrains.twig:223.8617.59,com.jetbrains.php.dql:223.7571.117
platformPlugins = java,yaml,xpath,webDeployment,JavaScript,com.jetbrains.php:233.13135.108,de.espend.idea.php.annotation:8.3.0,de.espend.idea.php.toolbox:6.1.0,com.jetbrains.twig:233.13135.108,com.jetbrains.php.dql:233.11799.172

# Java language level used to compile sources and to generate the files for - Java 11 is required since 2020.3
javaVersion = 17
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -487,40 +487,6 @@ public void assertLocalInspectionContains(String filename, String content, Strin
fail(String.format("Fail matches '%s' with one of %s", contains, matches));
}

public void assertAnnotationContains(String filename, String content, String contains) {
List<String> matches = new ArrayList<>();
for (Annotation annotation : getAnnotationsAtCaret(filename, content)) {
matches.add(annotation.toString());
if(annotation.getMessage().contains(contains)) {
return;
}
}

fail(String.format("Fail matches '%s' with one of %s", contains, matches));
}

@NotNull
private AnnotationHolderImpl getAnnotationsAtCaret(String filename, String content) {
PsiFile psiFile = myFixture.configureByText(filename, content);
PsiElement psiElement = myFixture.getFile().findElementAt(myFixture.getCaretOffset());

AnnotationHolderImpl annotations = new AnnotationHolderImpl(new AnnotationSession(psiFile));

for (Annotator annotator : LanguageAnnotators.INSTANCE.allForLanguage(psiFile.getLanguage())) {
annotator.annotate(psiElement, annotations);
}

return annotations;
}

public void assertAnnotationNotContains(String filename, String content, String contains) {
for (Annotation annotation : getAnnotationsAtCaret(filename, content)) {
if(annotation.getMessage().contains(contains)) {
fail(String.format("Fail not matching '%s' with '%s'", contains, annotation));
}
}
}

public void assertIntentionIsAvailable(LanguageFileType languageFileType, String configureByText, String intentionText) {
myFixture.configureByText(languageFileType, configureByText);
PsiElement psiElement = myFixture.getFile().findElementAt(myFixture.getCaretOffset());
Expand Down

0 comments on commit c4e38ee

Please sign in to comment.