@codemirror/lint 6.8.0 → 6.8.1
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 +2 -3
- package/dist/index.js +2 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -32,8 +32,7 @@ class LintState {
|
|
|
32
32
|
}).range(d.from)
|
|
33
33
|
: view.Decoration.mark({
|
|
34
34
|
attributes: { class: "cm-lintRange cm-lintRange-" + d.severity + (d.markClass ? " " + d.markClass : "") },
|
|
35
|
-
diagnostic: d
|
|
36
|
-
inclusive: true
|
|
35
|
+
diagnostic: d
|
|
37
36
|
}).range(d.from, d.to);
|
|
38
37
|
}), true);
|
|
39
38
|
return new LintState(ranges, panel, findDiagnostic(ranges));
|
|
@@ -116,7 +115,7 @@ function diagnosticCount(state) {
|
|
|
116
115
|
let lint = state.field(lintState, false);
|
|
117
116
|
return lint ? lint.diagnostics.size : 0;
|
|
118
117
|
}
|
|
119
|
-
const activeMark = view.Decoration.mark({ class: "cm-lintRange cm-lintRange-active"
|
|
118
|
+
const activeMark = view.Decoration.mark({ class: "cm-lintRange cm-lintRange-active" });
|
|
120
119
|
function lintTooltip(view, pos, side) {
|
|
121
120
|
let { diagnostics } = view.state.field(lintState);
|
|
122
121
|
let found = [], stackStart = 2e8, stackEnd = 0;
|
package/dist/index.js
CHANGED
|
@@ -30,8 +30,7 @@ class LintState {
|
|
|
30
30
|
}).range(d.from)
|
|
31
31
|
: Decoration.mark({
|
|
32
32
|
attributes: { class: "cm-lintRange cm-lintRange-" + d.severity + (d.markClass ? " " + d.markClass : "") },
|
|
33
|
-
diagnostic: d
|
|
34
|
-
inclusive: true
|
|
33
|
+
diagnostic: d
|
|
35
34
|
}).range(d.from, d.to);
|
|
36
35
|
}), true);
|
|
37
36
|
return new LintState(ranges, panel, findDiagnostic(ranges));
|
|
@@ -114,7 +113,7 @@ function diagnosticCount(state) {
|
|
|
114
113
|
let lint = state.field(lintState, false);
|
|
115
114
|
return lint ? lint.diagnostics.size : 0;
|
|
116
115
|
}
|
|
117
|
-
const activeMark = /*@__PURE__*/Decoration.mark({ class: "cm-lintRange cm-lintRange-active"
|
|
116
|
+
const activeMark = /*@__PURE__*/Decoration.mark({ class: "cm-lintRange cm-lintRange-active" });
|
|
118
117
|
function lintTooltip(view, pos, side) {
|
|
119
118
|
let { diagnostics } = view.state.field(lintState);
|
|
120
119
|
let found = [], stackStart = 2e8, stackEnd = 0;
|