-
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
Advertise proper exectution location #989
Conversation
Specify the workspace execution location so that VS Code prefers to install this extension in the remote host when using Remote Extensions like the Remote Container, SSH, or WSL extensions. VS Code will still install this extension locally when working on the local machine. For more inforamtion see: - https://code.visualstudio.com/api/advanced-topics/remote-extensions#incorrect-execution-location - https://code.visualstudio.com/api/advanced-topics/extension-host#preferred-extension-location
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://code.visualstudio.com/api/advanced-topics/extension-host#preferred-extension-location
👍🏻 thank you for identifying the problem and for the fix
Do you reckon this would affect #768 in any way?
In the short term, no. Longer term we have to modify the manifest and extension to support web browser only deployment, so this change doesn't prevent that. The
The extension relies on terraform-ls to provide most of the advanced language features and terraform-ls needs to run where the files are physically located to build a context for all features it provides. This means the extension needs to run where the workspace is located. We could specify As for the web extension, in order for us to run there we have to either WASM the terraform-ls binary or modify the extension manifest to declare its a web extension, which will be pretty involved for us. I don't think that is a concern for us until we start to work on that. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch!
Updated the PR with |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Specify the workspace execution location so that VS Code prefers to install this extension in the remote host when using Remote Extensions like the Remote Container, SSH, or WSL extensions. VS Code will still install this extension locally when working on the local machine.
For more inforamtion see:
Install to local:
Install to WSL: