[Enhancement]: KCL Diagnostic #634
Labels
enhancement
New feature or request
error-handling
Issues or PRs related to kcl error handling
ide
Issues or PRs related to kcl LSP and IDE plugins
Enhancement
Diagnostic postion
LSP Diagnostic position is a range(start and end) position but in KCL is a single (start) postion.
This will affect the display of diagnostics in the IDE, as well as the development of some features.
Multiple positions diagnostic
For some errors that have multiple locations, e.g. attr confict, the error message is scattered across different position. Incomplete error messages at a single position make it hard to understand
Edit message
Steps:
CodeAction
request, the param contains LSP Diagnostics generated in step 2.LSP CodeAction(quick fix) use some
edit message
to replace source code in diagnostic position.Rely on diagnostic unique ID/code to provide edit message
The text was updated successfully, but these errors were encountered: