-
-
Notifications
You must be signed in to change notification settings - Fork 5k
Open
Description
The code uses #4861

It does not enter
codemirror5/addon/lint/lint.js
Line 253 in 9974ded
| if (!/\bCodeMirror-lint-mark-/.test(target.className)) return; |
Because CodeMirror does CodeMirror-lint-marker CodeMirror-lint-marker-warning and not -mark-
Is this another bug ?
Anyway, let's continue :
codemirror5/addon/lint/lint.js
Lines 218 to 221 in 9974ded
| if (ann.to) state.marked.push(cm.markText(ann.from, ann.to, { | |
| className: "CodeMirror-lint-mark CodeMirror-lint-mark-" + severity, | |
| __annotation: ann | |
| })); |
And pushes the right contents, here is what we feed into
[{"message":"Linting is disabled for this query because it exceeds the maximum length.","fromLine":0,"fromColumn":0,"toLine":0,"toColumn":0,"severity":"warning"}]Even if I use message it seems to not display the tooltip
That's really strange
CodeMirror: 5.65.10
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels