-
Notifications
You must be signed in to change notification settings - Fork 137
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
Provide diagnostics based on mismatching schema #563
Comments
Just to add some context here, we do provide diagnostics for invalid HCL syntax, such as resource "" "" # missing curly brace
} and all other diagnostics would be provided by the custom |
A basic initial version of schema-based validation was implemented in #1368 and released as part of The example shown above with The remaining segments after There are other issues which track various incremental improvements and bugs under the With all that in mind I'm going to close this one. |
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. |
Current Version
Use-cases
Getting the server to validate the terraform files and highlight invalid code
Attempted Solutions
Proposal
Ideally would see a diagnostic for
data.terraform_remote_state
, for example, ifdata.terraform_remote_state
is not defined anywhere.Related LSP methods
textDocument/publishDiagnostics
- https://microsoft.github.io/language-server-protocol/specification#textDocument_publishDiagnosticsReferences
The text was updated successfully, but these errors were encountered: