Skip to content

Commit

Permalink
fix: make sure to have annotators available for languages [IDE-181] (#…
Browse files Browse the repository at this point in the history
…485)

* fix: make sure to have annotators available for languages

IntelliJ sometimes uses the annotator without explicit language definition (""), e.g for Java, but sometimes, e.g. for Kotlin, it needs a dedicated definition. This is just empirical on my machine, but as it doesn't cost much to define them, here they are.

* docs: update CHANGELOG.md
  • Loading branch information
bastiandoetsch authored Mar 7, 2024
1 parent 3105eff commit 64dcd44
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## [2.7.7]
### Fixed
- (LS Preview) do not hang on missing answers to message requests, timeout after 5s
- Provide language-specific annotators for Snyk Code issues

## [2.7.6]
### Fixed
Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/META-INF/optional/withCsharp.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<idea-plugin>
<extensions defaultExtensionNs="com.intellij">
<externalAnnotator language="C#" implementationClass="snyk.code.annotator.SnykCodeAnnotatorLS"/>
<externalAnnotator language="C#" implementationClass="snyk.code.annotator.SnykCodeAnnotator"/>
</extensions>
</idea-plugin>
4 changes: 4 additions & 0 deletions src/main/resources/META-INF/optional/withGo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,9 @@
<extensions defaultExtensionNs="com.intellij">
<externalAnnotator language="vgo" implementationClass="snyk.oss.annotator.OSSGoModAnnotator"/>
<externalAnnotator language="go" implementationClass="snyk.oss.annotator.OSSGoModAnnotator"/>
<externalAnnotator language="vgo" implementationClass="snyk.code.annotator.SnykCodeAnnotatorLS"/>
<externalAnnotator language="vgo" implementationClass="snyk.code.annotator.SnykCodeAnnotator"/>
<externalAnnotator language="go" implementationClass="snyk.code.annotator.SnykCodeAnnotatorLS"/>
<externalAnnotator language="go" implementationClass="snyk.code.annotator.SnykCodeAnnotator"/>
</extensions>
</idea-plugin>
2 changes: 2 additions & 0 deletions src/main/resources/META-INF/optional/withHTML.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<idea-plugin>
<extensions defaultExtensionNs="com.intellij">
<externalAnnotator language="HTML" implementationClass="snyk.code.annotator.SnykCodeAnnotatorLS"/>
<externalAnnotator language="HTML" implementationClass="snyk.code.annotator.SnykCodeAnnotator"/>
</extensions>
</idea-plugin>
4 changes: 4 additions & 0 deletions src/main/resources/META-INF/optional/withJava.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,9 @@
<extensions defaultExtensionNs="com.intellij">
<externalAnnotator language="JAVA" implementationClass="snyk.oss.annotator.OSSMavenAnnotator"/>
<externalAnnotator language="Groovy" implementationClass="snyk.oss.annotator.OSSGradleAnnotator"/>
<externalAnnotator language="JAVA" implementationClass="snyk.code.annotator.SnykCodeAnnotatorLS"/>
<externalAnnotator language="JAVA" implementationClass="snyk.code.annotator.SnykCodeAnnotator"/>
<externalAnnotator language="Groovy" implementationClass="snyk.code.annotator.SnykCodeAnnotatorLS"/>
<externalAnnotator language="Groovy" implementationClass="snyk.code.annotator.SnykCodeAnnotator"/>
</extensions>
</idea-plugin>
2 changes: 2 additions & 0 deletions src/main/resources/META-INF/optional/withJavaScript.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<idea-plugin>
<extensions defaultExtensionNs="com.intellij">
<externalAnnotator language="JavaScript" implementationClass="snyk.code.annotator.SnykCodeAnnotatorLS"/>
<externalAnnotator language="JavaScript" implementationClass="snyk.code.annotator.SnykCodeAnnotator"/>
</extensions>
</idea-plugin>
2 changes: 2 additions & 0 deletions src/main/resources/META-INF/optional/withKotlin.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<idea-plugin>
<extensions defaultExtensionNs="com.intellij">
<externalAnnotator language="kotlin" implementationClass="snyk.oss.annotator.OSSGradleAnnotator"/>
<externalAnnotator language="kotlin" implementationClass="snyk.code.annotator.SnykCodeAnnotatorLS"/>
<externalAnnotator language="kotlin" implementationClass="snyk.code.annotator.SnykCodeAnnotator"/>
</extensions>
</idea-plugin>
2 changes: 2 additions & 0 deletions src/main/resources/META-INF/optional/withPHP.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<idea-plugin>
<extensions defaultExtensionNs="com.intellij">
<externalAnnotator language="PHP" implementationClass="snyk.code.annotator.SnykCodeAnnotatorLS"/>
<externalAnnotator language="PHP" implementationClass="snyk.code.annotator.SnykCodeAnnotator"/>
</extensions>
</idea-plugin>
2 changes: 2 additions & 0 deletions src/main/resources/META-INF/optional/withPython.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<idea-plugin>
<extensions defaultExtensionNs="com.intellij">
<externalAnnotator language="Python" implementationClass="snyk.code.annotator.SnykCodeAnnotatorLS"/>
<externalAnnotator language="Python" implementationClass="snyk.code.annotator.SnykCodeAnnotator"/>
</extensions>
</idea-plugin>

0 comments on commit 64dcd44

Please sign in to comment.