Skip to content

Commit 55d6556

Browse files
committed
Fix markerFilter option
FIX: Fix a regression (since 6.8.4) that broke the `markerFilter` option. Closes codemirror/dev#1541
1 parent 2ffcff1 commit 55d6556

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/lint.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,9 @@ class LintState {
9595

9696
static init(diagnostics: readonly Diagnostic[], panel: PanelConstructor | null, state: EditorState) {
9797
// Filter the list of diagnostics for which to create markers
98-
let markedDiagnostics = diagnostics
9998
let diagnosticFilter = state.facet(lintConfig).markerFilter
10099
if (diagnosticFilter)
101-
markedDiagnostics = diagnosticFilter(markedDiagnostics, state)
100+
diagnostics = diagnosticFilter(diagnostics, state)
102101

103102
let sorted = diagnostics.slice().sort((a, b) => a.from - b.from || a.to - b.to)
104103
let deco = new RangeSetBuilder<Decoration>(), active: Diagnostic[] = [], pos = 0

0 commit comments

Comments
 (0)