-
Notifications
You must be signed in to change notification settings - Fork 182
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
Saving documents is extremely slow on windows #1679
Comments
Not only on Windows, MacOS as well. It's taking 20 seconds to save a file. 🤦 |
Same here. The extension often seemed to get bogged down, especially if there were a lot of nested modules pulled in after a terraform init. But it is getting worse. Sometimes it can take 60secs to format and save a file. |
We've just released In VS Code, you can opt in to the extension preview: If you have the time, please give it a try and let us know how it works for you. We have tested this with workspaces of different sizes, but still expect some bugs due to the wide variety of configurations. Your feedback is greatly appreciated. |
Just installed here and indeed it seems to be performing way better, I still get the "Saving...." dialog every now and then, but this is definitely an improvement! |
We've shipped the re-architected language server in the 2.32.0 stable release last week. The language server will (still) start up much faster and use fewer resources, especially on larger workspaces. I would like to close this issue for now. Please let us know if you experience any problems or regressions. |
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. |
Extension Version
v2.29.3
VS Code Version
Version: 1.85.2 (user setup)
Commit: 8b3775030ed1a69b13e4f4c628c612102e30a681
Date: 2024-01-18T06:40:10.514Z
Electron: 25.9.7
ElectronBuildId: 26354273
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: 11.4.183.29-electron.0
OS: Windows_NT x64 10.0.22621
Operating System
Edition Windows 11 Pro Version 22H2 OS build 22621.3007
Terraform Version
Terraform v1.7.0 on windows_amd64
Behavior
When editing a file and pressing Ctrl+S to save file changes, the following dialog appears
![image](https://private-user-images.githubusercontent.com/3263338/299920093-bf3f5e5c-81ec-4587-a100-932356f2eead.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg3ODg3MzksIm5iZiI6MTczODc4ODQzOSwicGF0aCI6Ii8zMjYzMzM4LzI5OTkyMDA5My1iZjNmNWU1Yy04MWVjLTQ1ODctYTEwMC05MzIzNTZmMmVlYWQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIwNSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMDVUMjA0NzE5WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9Njc0NzJjYWQ2NjBjMTZkMWFlNmE3YWI2NjA5OWVmOGMzZWYyMDRkZmZmNjM2M2NiMDY4YzY3ZWFkNTRlMDdkNSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.e1B8sAknt2R70-SBfkO6nw_eS9gt5kkZYyNqAy7KpCs)
preventing the file to be saved until such dialog disappears.
Steps to Reproduce
Any modification (e.g. add an empty line to a tf file) followed by a save
Terraform Configuration
No response
Project Structure
No response
Gist
No response
Anything Else?
Just for the record, running
find . *.tf | wc -l
returns 2358.References
No response
Community Note
The text was updated successfully, but these errors were encountered: