We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d11a58 commit 1590a84Copy full SHA for 1590a84
1 file changed
src/ide/views/visuals.ts
@@ -228,6 +228,10 @@ const highlightLinesField = StateField.define({
228
return Decoration.set(decorationRanges);
229
}
230
231
+ // dismiss highlights on user interaction
232
+ if (decorations !== Decoration.none && (tr.docChanged || tr.selection)) {
233
+ return Decoration.none;
234
+ }
235
return decorations;
236
},
237
provide: f => EditorView.decorations.from(f),
0 commit comments