mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01:00
Add needsRefresh to lint source config (#13050)
GitOrigin-RevId: bc6880f87bc81c7f0f022268a4d070c267421c46
This commit is contained in:
@@ -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 = () =>
|
||||
|
||||
Reference in New Issue
Block a user