Skip to content

Commit 6e717c3

Browse files
authored
remove external annotator from config. (#262)
we only need it to run batch inspection
1 parent 2d5e6ef commit 6e717c3

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

src/main/kotlin/com/emberjs/gts/GlintExternalAnnotator.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ class GlintExternalAnnotator : JSLinterExternalAnnotator<GlintState>(true) {
226226
}
227227

228228
val errors: MutableList<JSLinterError> = mutableListOf()
229-
errors.addAll(res?.map { JSLinterError(it.line, it.column, it.description, it.category, it.severity) } ?: listOf())
229+
errors.addAll(res?.map { JSLinterError(it.line + 1, it.column, it.description, it.category, it.severity) } ?: listOf())
230230
return JSLinterAnnotationResult.createLinterResult(input, errors.toList(), null as VirtualFile?)
231231
}
232232

src/main/kotlin/com/emberjs/gts/GtsSupport.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ import com.intellij.lexer.Lexer
4949
import com.intellij.lexer.LookAheadLexer
5050
import com.intellij.openapi.editor.Document
5151
import com.intellij.openapi.editor.Editor
52+
import com.intellij.openapi.editor.actions.lists.TrailingComma
5253
import com.intellij.openapi.editor.colors.EditorColorsScheme
5354
import com.intellij.openapi.editor.ex.util.LayerDescriptor
5455
import com.intellij.openapi.editor.ex.util.LayeredLexerEditorHighlighter

src/main/resources/META-INF/plugin.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,6 @@
176176
<externalAnnotator language="Handlebars" implementationClass="TemplateLintExternalAnnotator"/>
177177
<externalAnnotator language="JavaScript" implementationClass="TemplateLintExternalAnnotator"/>
178178
<externalAnnotator language="Gts" implementationClass="TemplateLintExternalAnnotator"/>
179-
<externalAnnotator language="Gts" implementationClass="com.emberjs.gts.GlintExternalAnnotator"/>
180179
<externalAnnotator language="Handlebars" implementationClass="com.emberjs.gts.HbLintExternalAnnotator"/>
181180
<externalAnnotator language="Gts" implementationClass="com.emberjs.hbs.linter.eslint.GtsEslintExternalAnnotator"/>
182181
<externalAnnotator language="Handlebars" implementationClass="com.emberjs.hbs.linter.eslint.GtsEslintExternalAnnotator"/>

0 commit comments

Comments
 (0)