|
|
@@ -1,4 +1,4 @@
|
|
|
-import { EditorView } from '@codemirror/view'
|
|
|
+import { EditorView, ViewUpdate } from '@codemirror/view'
|
|
|
import { Diagnostic, linter, lintGutter } from '@codemirror/lint'
|
|
|
import {
|
|
|
Compartment,
|
|
|
@@ -36,6 +36,9 @@ export const lintSourceConfig = {
|
|
|
tooltipFilter() {
|
|
|
return []
|
|
|
},
|
|
|
+ needsRefresh(update: ViewUpdate) {
|
|
|
+ return update.selectionSet
|
|
|
+ },
|
|
|
}
|
|
|
|
|
|
const compileLogLintSource = () =>
|