We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4bc33c4 commit 9eb197eCopy full SHA for 9eb197e
core/src/main/kotlin/cc/unitmesh/devti/sketch/ui/code/EditorUtil.kt
@@ -111,7 +111,11 @@ object EditorUtil {
111
.getService(EditorHighlighterFactory::class.java)
112
.createEditorHighlighter(project, file)
113
114
- editor.highlighter = highlighter
+ try {
115
+ editor.highlighter = highlighter
116
+ } catch (e: Throwable) {
117
+ /// do nothing
118
+ }
119
120
val markupModel: MarkupModelEx = editor.markupModel
121
(markupModel as EditorMarkupModel).isErrorStripeVisible = false
0 commit comments