@codemirror/lint 6.9.6 → 6.9.7

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 CHANGED
@@ -1,3 +1,9 @@
1
+ ## 6.9.7 (2026-06-09)
2
+
3
+ ### Bug fixes
4
+
5
+ Avoid lint tooltips overlapping their target text when that is line-wrapped.
6
+
1
7
  ## 6.9.6 (2026-05-06)
2
8
 
3
9
  ### Bug fixes
package/dist/index.cjs CHANGED
@@ -205,7 +205,7 @@ function lintTooltip(view, pos, side) {
205
205
  return {
206
206
  pos: start,
207
207
  end: end,
208
- above: view.state.doc.lineAt(start).to < end,
208
+ above: true,
209
209
  create() {
210
210
  return { dom: diagnosticsTooltip(view, found) };
211
211
  }
package/dist/index.js CHANGED
@@ -203,7 +203,7 @@ function lintTooltip(view, pos, side) {
203
203
  return {
204
204
  pos: start,
205
205
  end: end,
206
- above: view.state.doc.lineAt(start).to < end,
206
+ above: true,
207
207
  create() {
208
208
  return { dom: diagnosticsTooltip(view, found) };
209
209
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codemirror/lint",
3
- "version": "6.9.6",
3
+ "version": "6.9.7",
4
4
  "description": "Linting support for the CodeMirror code editor",
5
5
  "scripts": {
6
6
  "test": "cm-runtests",