vscode-terraform
vscode-terraform copied to clipboard
Enable users to configure linter settings in VS Code
This is part of https://github.com/hashicorp/vscode-terraform/issues/635
Problem Statement
To allow a more straightforward configuration of linter settings for the language server, we expose those settings via the VS Code settings UI to the user.
We want to support running multiple linters simultaneously, so each supported linter will get an extra section for settings.
Expected User Experience
The settings UI for configuring a lint tool could look something like this:

With an extra headline above and tflint specific wording.
A user should be able to specify:
- A path to the binary
- Arguments for the binary
- When to run the binary, e.g. on save or off
Proposal
- Extend the
contributesobject inside thepackage.jsonwith the new settings UI- The keys for the new settings might look like:
terraform.languageServer.linters.tflint.binaryPathterraform.languageServer.linters.tflint.binaryFlagsterraform.languageServer.linters.tflint.lintOnSave
- The keys for the new settings might look like:
- Pass the settings to the language server on initialization