@codemirror/lint
Advanced tools
+6
-0
@@ -0,1 +1,7 @@ | ||
| ## 6.9.4 (2026-02-11) | ||
| ### Bug fixes | ||
| Make sure `nextDiagnostic` selects entire diagnostics, even when they overlap with other diagnostics. | ||
| ## 6.9.3 (2026-01-27) | ||
@@ -2,0 +8,0 @@ |
+4
-4
@@ -246,6 +246,6 @@ 'use strict'; | ||
| return false; | ||
| let sel = view.state.selection.main, next = field.diagnostics.iter(sel.to + 1); | ||
| if (!next.value) { | ||
| next = field.diagnostics.iter(0); | ||
| if (!next.value || next.from == sel.from && next.to == sel.to) | ||
| let sel = view.state.selection.main, next = findDiagnostic(field.diagnostics, null, sel.to + 1); | ||
| if (!next) { | ||
| next = findDiagnostic(field.diagnostics, null, 0); | ||
| if (!next || next.from == sel.from && next.to == sel.to) | ||
| return false; | ||
@@ -252,0 +252,0 @@ } |
+4
-4
@@ -244,6 +244,6 @@ import { Decoration, showPanel, EditorView, ViewPlugin, gutter, showTooltip, hoverTooltip, getPanel, logException, WidgetType, GutterMarker } from '@codemirror/view'; | ||
| return false; | ||
| let sel = view.state.selection.main, next = field.diagnostics.iter(sel.to + 1); | ||
| if (!next.value) { | ||
| next = field.diagnostics.iter(0); | ||
| if (!next.value || next.from == sel.from && next.to == sel.to) | ||
| let sel = view.state.selection.main, next = findDiagnostic(field.diagnostics, null, sel.to + 1); | ||
| if (!next) { | ||
| next = findDiagnostic(field.diagnostics, null, 0); | ||
| if (!next || next.from == sel.from && next.to == sel.to) | ||
| return false; | ||
@@ -250,0 +250,0 @@ } |
+1
-1
| { | ||
| "name": "@codemirror/lint", | ||
| "version": "6.9.3", | ||
| "version": "6.9.4", | ||
| "description": "Linting support for the CodeMirror code editor", | ||
@@ -5,0 +5,0 @@ "scripts": { |
96100
0.19%