Is it better to put all the validations in validator or can also put in hoverprovider? #1707
Unanswered
durianwaffle
asked this question in
Q&A
Replies: 1 comment
-
Hey @durianwaffle,
I wouldn't recommend moving validations out of the validator. The hover LSP feature is very specific to actually hovering over text, while validations (diagnostics in LSP speech) also appear in other places. For example, diagnostics will appear in the problems tab of your IDE, whereas hovers won't appear there. |
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
-
I found that I can detect some validation errors in hover provider too.
Is it the best practice to put every validation in validator or can scatter around in different providers?
Will there be a case that validator can't detect some errors but hover provider can?
Beta Was this translation helpful? Give feedback.
All reactions