Is it better to put all the validations in validator or can also put in hoverprovider? #1707
-
I found that I can detect some validation errors in hover provider too. Will there be a case that validator can't detect some errors but hover provider can? |
Beta Was this translation helpful? Give feedback.
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.
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.