lint: Make F8/nextDiagnostic show relevant tooltip #1697

Closed
opened 2026-04-21 07:29:40 +02:00 by push-f.com · 2 comments

IDEs like VS Code or Zed also show the description of the error when pressing F8, which is really handy. I'd would be nice if @codemirror/lint behaved the same (currently it only selects the range of the diagnostic but does not display the tooltip).

IDEs like VS Code or Zed also show the description of the error when pressing <kbd>F8</kbd>, which is really handy. I'd would be nice if @codemirror/lint behaved the same (currently it only selects the range of the diagnostic but does not display the tooltip).
Owner

See attached patch. VS Code has dedicated widgets that work differently from tooltips for these, and keeps them open until you explicitly close them. That didn't seem appropriate, so these close as soon as you move the cursor away or edit the document.

See attached patch. VS Code has dedicated widgets that work differently from tooltips for these, and keeps them open until you explicitly close them. That didn't seem appropriate, so these close as soon as you move the cursor away or edit the document.
Author

Awesome, works like a charm!

Awesome, works like a charm!
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
codemirror/dev#1697
No description provided.