stimulus-lsp
stimulus-lsp copied to clipboard
Use `keyLoc` and `valueLoc` for value definition diagnostic
The pull request https://github.com/marcoroth/stimulus-lsp/pull/212 implemented a new stimulus.controller.value_definition.unknown_type
diagnostic. Though, all diagnostics related to value definitions were targeting the whole static values
values section for the diagnostic range.
Thanks to @nachiket87 we were able to add keyLoc
and valueLoc
to ValueDefintion
in https://github.com/marcoroth/stimulus-parser/pull/102 which was released in [email protected]
.
We should now update the all the value definition diagnostics the Stimulus LSP has to use the newly added keyLoc
and valueLoc
properties to make the diagnostic ranges more accurate.
added the diagnostic range for the value only in this PR: #249 @marcoroth