We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ffcff1 commit 55d6556Copy full SHA for 55d6556
src/lint.ts
@@ -95,10 +95,9 @@ class LintState {
95
96
static init(diagnostics: readonly Diagnostic[], panel: PanelConstructor | null, state: EditorState) {
97
// Filter the list of diagnostics for which to create markers
98
- let markedDiagnostics = diagnostics
99
let diagnosticFilter = state.facet(lintConfig).markerFilter
100
if (diagnosticFilter)
101
- markedDiagnostics = diagnosticFilter(markedDiagnostics, state)
+ diagnostics = diagnosticFilter(diagnostics, state)
102
103
let sorted = diagnostics.slice().sort((a, b) => a.from - b.from || a.to - b.to)
104
let deco = new RangeSetBuilder<Decoration>(), active: Diagnostic[] = [], pos = 0
0 commit comments