Commit fb05a8e
committed
feat(diagnostics): emulate VSCode Error Lens with virtual text and lines
Added functionality to mimic VSCode's Error Lens behavior:
- Displays diagnostics as virtual text with severity icons during insert mode.
- Switches to virtual lines with formatted messages in normal mode for better readability.
- Replaced `InsertLeave` with `ModeChanged` (`i:*`) to ensure diagnostics update correctly even when exiting insert>
This refactor improves code readability, follows single-responsibility principles, and makes it easier to maintain >
Improves real-time feedback while coding and enhances the visual presentation of diagnostics.1 parent 632f7b0 commit fb05a8e
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
672 | 672 | | |
673 | 673 | | |
674 | 674 | | |
675 | | - | |
| 675 | + | |
| 676 | + | |
676 | 677 | | |
677 | 678 | | |
678 | 679 | | |
| |||
0 commit comments