@codemirror/lint 0.19.4 → 0.19.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 +4 -7
- package/dist/index.js +4 -7
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -612,7 +612,7 @@ function trackHoverOn(view, marker) {
|
|
|
612
612
|
function gutterMarkerMouseOver(view, marker, diagnostics) {
|
|
613
613
|
function hovered() {
|
|
614
614
|
let line = view.visualLineAtHeight(marker.getBoundingClientRect().top + 5 - view.documentTop);
|
|
615
|
-
const linePos = view.coordsAtPos(line.from)
|
|
615
|
+
const linePos = view.coordsAtPos(line.from);
|
|
616
616
|
if (linePos) {
|
|
617
617
|
view.dispatch({ effects: setLintGutterTooltip.of({
|
|
618
618
|
pos: line.from,
|
|
@@ -620,7 +620,7 @@ function gutterMarkerMouseOver(view, marker, diagnostics) {
|
|
|
620
620
|
create() {
|
|
621
621
|
return {
|
|
622
622
|
dom: diagnosticsTooltip(view, diagnostics),
|
|
623
|
-
|
|
623
|
+
getCoords: () => marker.getBoundingClientRect()
|
|
624
624
|
};
|
|
625
625
|
}
|
|
626
626
|
}) });
|
|
@@ -682,15 +682,12 @@ const lintGutterTheme = view.EditorView.baseTheme({
|
|
|
682
682
|
".cm-gutter-lint": {
|
|
683
683
|
width: "1.4em",
|
|
684
684
|
"& .cm-gutterElement": {
|
|
685
|
-
padding: "
|
|
686
|
-
display: "flex",
|
|
687
|
-
flexDirection: "column",
|
|
688
|
-
justifyContent: "center",
|
|
685
|
+
padding: ".2em"
|
|
689
686
|
}
|
|
690
687
|
},
|
|
691
688
|
".cm-lint-marker": {
|
|
692
689
|
width: "1em",
|
|
693
|
-
height: "1em"
|
|
690
|
+
height: "1em"
|
|
694
691
|
},
|
|
695
692
|
".cm-lint-marker-info": {
|
|
696
693
|
content: svg(`<path fill="#aaf" stroke="#77e" stroke-width="6" stroke-linejoin="round" d="M5 5L35 5L35 35L5 35Z"/>`)
|
package/dist/index.js
CHANGED
|
@@ -604,7 +604,7 @@ function trackHoverOn(view, marker) {
|
|
|
604
604
|
function gutterMarkerMouseOver(view, marker, diagnostics) {
|
|
605
605
|
function hovered() {
|
|
606
606
|
let line = view.visualLineAtHeight(marker.getBoundingClientRect().top + 5 - view.documentTop);
|
|
607
|
-
const linePos = view.coordsAtPos(line.from)
|
|
607
|
+
const linePos = view.coordsAtPos(line.from);
|
|
608
608
|
if (linePos) {
|
|
609
609
|
view.dispatch({ effects: setLintGutterTooltip.of({
|
|
610
610
|
pos: line.from,
|
|
@@ -612,7 +612,7 @@ function gutterMarkerMouseOver(view, marker, diagnostics) {
|
|
|
612
612
|
create() {
|
|
613
613
|
return {
|
|
614
614
|
dom: diagnosticsTooltip(view, diagnostics),
|
|
615
|
-
|
|
615
|
+
getCoords: () => marker.getBoundingClientRect()
|
|
616
616
|
};
|
|
617
617
|
}
|
|
618
618
|
}) });
|
|
@@ -674,15 +674,12 @@ const lintGutterTheme = /*@__PURE__*/EditorView.baseTheme({
|
|
|
674
674
|
".cm-gutter-lint": {
|
|
675
675
|
width: "1.4em",
|
|
676
676
|
"& .cm-gutterElement": {
|
|
677
|
-
padding: "
|
|
678
|
-
display: "flex",
|
|
679
|
-
flexDirection: "column",
|
|
680
|
-
justifyContent: "center",
|
|
677
|
+
padding: ".2em"
|
|
681
678
|
}
|
|
682
679
|
},
|
|
683
680
|
".cm-lint-marker": {
|
|
684
681
|
width: "1em",
|
|
685
|
-
height: "1em"
|
|
682
|
+
height: "1em"
|
|
686
683
|
},
|
|
687
684
|
".cm-lint-marker-info": {
|
|
688
685
|
content: /*@__PURE__*/svg(`<path fill="#aaf" stroke="#77e" stroke-width="6" stroke-linejoin="round" d="M5 5L35 5L35 35L5 35Z"/>`)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codemirror/lint",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.5",
|
|
4
4
|
"description": "Linting support for the CodeMirror code editor",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "cm-runtests",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"@codemirror/panel": "^0.19.0",
|
|
31
31
|
"@codemirror/rangeset": "^0.19.1",
|
|
32
32
|
"@codemirror/state": "^0.19.4",
|
|
33
|
-
"@codemirror/tooltip": "^0.19.
|
|
33
|
+
"@codemirror/tooltip": "^0.19.16",
|
|
34
34
|
"@codemirror/view": "^0.19.22",
|
|
35
35
|
"crelt": "^1.0.5"
|
|
36
36
|
},
|