fix: Suppress random exception for now
This commit is contained in:
parent
ebc40a3486
commit
25f4a30cdc
1 changed files with 11 additions and 8 deletions
|
@ -1569,17 +1569,20 @@ 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();
|
||||||
|
|
||||||
SmartList<Annotation> asList = (SmartList<Annotation>) this.anonHolder;
|
SmartList<Annotation> asList = (SmartList<Annotation>) this.anonHolder;
|
||||||
this.annotations.add(asList.get(asList.size() - 1));
|
this.annotations.add(asList.get(asList.size() - 1));
|
||||||
|
|
||||||
|
|
||||||
diagnosticSyncRequired = true;
|
diagnosticSyncRequired = true;
|
||||||
|
} catch (IllegalArgumentException ignored) {
|
||||||
|
//TODO Suppressed error, fix this somehow
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue