Custom diagnostics in a plugin #2511
emmericp
started this conversation in
Show and tell
Replies: 1 comment
-
Thats really smart! thank you, i didn't know you could use the entire LLS API in the plugin |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The docs say that plugins can't define custom diagnostics, but that's actually a lie -- here's a hacky way to define custom diagnostics in a plugin.
It's pretty much guaranteed to fall apart as soon as anything about how diagnostics work internally is changed. But maybe it's helpful for others as well until we get real plugin support.
Example diagnostic that just highlights all assignments to local variables:
Beta Was this translation helpful? Give feedback.
All reactions