I’m using the vscode ssh remote editor extension to work on virtual machines without internet access. The terraform-vscode plugin can handle installing itself in this scenario but the language server fails to install. I have opened a bug for that here https://github.com/hashicorp/vscode-terraform/issues/451
Does anybody know the steps needed to manually install and update the language server in this situation? I have downloaded the latest binary of the language server and put it at ~/.vscode-server/extensions/hashicorp.terraform-2.2.2/lsp/terraform-ls on the remote system. Running the enable language server command fails when it tries to download from the internet. I have confirmed the vscode settings are set to default. When I attempt to format code in my vscode remote session it just pops up the install formatter dialog.
Thanks @trodemaster. I assume this snippet just go into either a User or Workspace settings.json file? Where did you find this info - is this documented at the terraform-ls project or did you have to grep the code?
Hi folks,
I just wanted to note that we plan to look into bundling of the LS binary with the extension which would avoid the need for workarounds mentioned here.