-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Store diagnostics in memdb table #856
Comments
I have not looked into gopls codebase for the implementation and current state, but at least last year in 2021 they stored diagnostics per files according to this microsoft/language-server-protocol#1217 |
It's no longer needed due to #1667 and the diagnostic source map we introduced as part of the enhanced validation work. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
This is part of hashicorp/vscode-terraform#635
Problem Statement
Currently we're sourcing and publishing diagnostics in two different places:
As result of parsing files
terraform-ls/internal/langserver/handlers/hooks_module.go
Lines 144 to 152 in f246688
terraform validate
terraform-ls/internal/langserver/handlers/command/validate.go
Lines 67 to 72 in f246688
This can lead to stale or suddenly disappearing diagnostics, for example when
validate
is executed as an editor command.Requirements Summary
Proposal
validate
diagnostics in the tableRelated LSP methods
Upcoming diagnostics sources
Open Questions
The text was updated successfully, but these errors were encountered: