You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't know if this causes any performance issue but I've noticed this non-ideal behavior when checking out some slowness...
I've noticed that the server reports diagnostics for all files in the workspace on every change, even if the diagnostic state doesn't change for given files.
I think that there is a potential for optimization here - it could keep the state of diagnostics internally and only report when there are any changes since the last update.
Steps to Reproduce
Open any project with multiple terraform files
Change any file
Observer server logs
Terraform Configuration
No response
Project Structure
No response
Gist
No response
References
No response
Community Note
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
The text was updated successfully, but these errors were encountered:
Thanks for the report. I agree, it's not ideal and can be improved.
In my tests I only saw diagnostics for files of the same module (directory), not the whole workspace.
I can't see the full paths in your screenshot, but I assume this is a module with many files?
It might be that it's just the module (directory). We have just a flat structure with all files in the same directory.
Also seems like diagnostics are only reported when at least one file has some diagnostic reported. As soon as none of the files have any reported diagnostics then no diagnostics are published on changes.
Language Server Version
v0.32.6
Terraform Version
Terraform v1.0.4 on darwin_arm64
Client Version
Sublime LSP 1.28.0
Behavior
I don't know if this causes any performance issue but I've noticed this non-ideal behavior when checking out some slowness...
I've noticed that the server reports diagnostics for all files in the workspace on every change, even if the diagnostic state doesn't change for given files.
I think that there is a potential for optimization here - it could keep the state of diagnostics internally and only report when there are any changes since the last update.
Steps to Reproduce
Terraform Configuration
No response
Project Structure
No response
Gist
No response
References
No response
Community Note
The text was updated successfully, but these errors were encountered: