fix: Suppress random exception for now

This commit is contained in:
FalsePattern 2023-08-21 19:52:18 +02:00
parent ebc40a3486
commit 25f4a30cdc
Signed by: falsepattern
GPG key ID: FDF7126A9E124447

View file

@ -1569,8 +1569,8 @@ public class EditorEventManager {
int endOffset = editor.getDocument().getLineEndOffset(line); int endOffset = editor.getDocument().getLineEndOffset(line);
TextRange range = new TextRange(startOffset, endOffset); TextRange range = new TextRange(startOffset, endOffset);
this.anonHolder try {
.newAnnotation(HighlightSeverity.INFORMATION, codeAction.getTitle()) this.anonHolder.newAnnotation(HighlightSeverity.INFORMATION, codeAction.getTitle())
.range(range) .range(range)
.withFix(new LSPCodeActionFix(FileUtils.editorToURIString(editor), codeAction)) .withFix(new LSPCodeActionFix(FileUtils.editorToURIString(editor), codeAction))
.create(); .create();
@ -1580,6 +1580,9 @@ public class EditorEventManager {
diagnosticSyncRequired = true; diagnosticSyncRequired = true;
} catch (IllegalArgumentException ignored) {
//TODO Suppressed error, fix this somehow
}
} }
} }
}); });