@codemirror/lint 0.19.5 → 0.19.6

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
+ ## 0.19.6 (2022-03-04)
2
+
3
+ ### Bug fixes
4
+
5
+ Fix a bug where hovering over the icons in the lint gutter would sometimes fail to show a tooltip or show the tooltip for another line.
6
+
1
7
  ## 0.19.5 (2022-02-25)
2
8
 
3
9
  ### Bug fixes
package/dist/index.cjs CHANGED
@@ -611,7 +611,7 @@ function trackHoverOn(view, marker) {
611
611
  }
612
612
  function gutterMarkerMouseOver(view, marker, diagnostics) {
613
613
  function hovered() {
614
- let line = view.visualLineAtHeight(marker.getBoundingClientRect().top + 5 - view.documentTop);
614
+ let line = view.elementAtHeight(marker.getBoundingClientRect().top + 5 - view.documentTop);
615
615
  const linePos = view.coordsAtPos(line.from);
616
616
  if (linePos) {
617
617
  view.dispatch({ effects: setLintGutterTooltip.of({
package/dist/index.js CHANGED
@@ -603,7 +603,7 @@ function trackHoverOn(view, marker) {
603
603
  }
604
604
  function gutterMarkerMouseOver(view, marker, diagnostics) {
605
605
  function hovered() {
606
- let line = view.visualLineAtHeight(marker.getBoundingClientRect().top + 5 - view.documentTop);
606
+ let line = view.elementAtHeight(marker.getBoundingClientRect().top + 5 - view.documentTop);
607
607
  const linePos = view.coordsAtPos(line.from);
608
608
  if (linePos) {
609
609
  view.dispatch({ effects: setLintGutterTooltip.of({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codemirror/lint",
3
- "version": "0.19.5",
3
+ "version": "0.19.6",
4
4
  "description": "Linting support for the CodeMirror code editor",
5
5
  "scripts": {
6
6
  "test": "cm-runtests",