@codemirror/lint 6.8.4 → 6.8.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/index.cjs +1 -2
- package/dist/index.js +1 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -19,10 +19,9 @@ class LintState {
|
|
|
19
19
|
}
|
|
20
20
|
static init(diagnostics, panel, state$1) {
|
|
21
21
|
// Filter the list of diagnostics for which to create markers
|
|
22
|
-
let markedDiagnostics = diagnostics;
|
|
23
22
|
let diagnosticFilter = state$1.facet(lintConfig).markerFilter;
|
|
24
23
|
if (diagnosticFilter)
|
|
25
|
-
|
|
24
|
+
diagnostics = diagnosticFilter(diagnostics, state$1);
|
|
26
25
|
let sorted = diagnostics.slice().sort((a, b) => a.from - b.from || a.to - b.to);
|
|
27
26
|
let deco = new state.RangeSetBuilder(), active = [], pos = 0;
|
|
28
27
|
for (let i = 0;;) {
|
package/dist/index.js
CHANGED
|
@@ -17,10 +17,9 @@ class LintState {
|
|
|
17
17
|
}
|
|
18
18
|
static init(diagnostics, panel, state) {
|
|
19
19
|
// Filter the list of diagnostics for which to create markers
|
|
20
|
-
let markedDiagnostics = diagnostics;
|
|
21
20
|
let diagnosticFilter = state.facet(lintConfig).markerFilter;
|
|
22
21
|
if (diagnosticFilter)
|
|
23
|
-
|
|
22
|
+
diagnostics = diagnosticFilter(diagnostics, state);
|
|
24
23
|
let sorted = diagnostics.slice().sort((a, b) => a.from - b.from || a.to - b.to);
|
|
25
24
|
let deco = new RangeSetBuilder(), active = [], pos = 0;
|
|
26
25
|
for (let i = 0;;) {
|