Open brodster2 opened 4 years ago
I couldn't find any documentation on this in either repository but if you're using https://github.com/hashicorp/terraform-ls you can update terraform.languageServer.args
to add the --tf-exec
argument after the serve
command:
Since we can't update to 0.13 until we work around a removed feature I'm using this a fair amount.
Thanks @acdha that's done the trick for me 👍 .
Might be worth leaving the issue open until there's documentation since this is currently opaque
I use tfenv
to manage my terraform installations.
I need to figure out how to point through that instead.
update: Looks like tfenv puts this in the standard path of /usr/local/bin/terraform
so I pointed to that and it worked. Thanks for this! I've not had a functional terraform linter in months.
Might be worth leaving the issue open until there's documentation since this is currently opaque
@acdha Reopened
Nowadays we have this config in VSCode: terraform.languageServer.terraform.path
I've been using it for a while, before Terraform v1.3.9 it was working fine (no delay), but I'm starting to see delay again since I updated to v1.3.9
I use the chtf tool to install and switch between different versions of Terraform. Because of this when I start up vscode the output from terraform-ls shows.
Pycharm and other JetBrains editors allow you to set the path to a terraform binary for plugin functionality. Would it be possible to add the option to point to a binary in
/vscode/settings.json
?