You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
VSCode on Windows 10 with the new terraform extension (2.0.0-rc2)
Terraform Configuration Files
local.tfvars
// Environment variablesenvironment="dev"subscription_id="XXXXXXXXXXXXXXXXXXXXXX"azure_developer="XXXXX@XXXXX.com"// This name is applied to all resources createdprefix="myprefix"// First is Primary and second is Backupinstance=["primary", "secondary"]
instance_short=["1", "2"]
location=["East US", "West US"]
timezone=["Eastern Standard Time", "Pacific Standard Time"]
location_alt=["eastus", "westus"]
rg_count=1// 1 or 2; 1 builds a single primary RG, 2 builds primary and secondary
Log Output
N.A.
Expected Behavior
Syntax coloring should work
Actual Behavior
.tfvars file isn't recognized by the language server. There is no indication in the logs that is trying to read the file, almost as if the file type isn't picked up as a valid one.
Steps to Reproduce
Open a folder in IDE
Open a file name local.tfvars
No syntax coloring is observed.
The text was updated successfully, but these errors were encountered:
Hi @ubenmackin
Thank you for trying out the release candidate of the extension.
Generally syntax highlighting is done on the client side - i.e. by the extension directly, so that's not something server could implement (yet) as the LSP (protocol used between client/IDE and the server) doesn't specify that. There is a PR which should enable syntax highlighting of tfvars: hashicorp/vscode-terraform#349
As for the language server features related to tfvars - I believe this is already covered under #50
With that in mind I'm going to close this issue in favour of the linked one and the PR.
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.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the context necessary to investigate further.
ghost
locked and limited conversation to collaborators
Jul 9, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Server Version
Terraform Version
Client Version
Terraform Configuration Files
local.tfvars
Log Output
N.A.
Expected Behavior
Syntax coloring should work
Actual Behavior
.tfvars file isn't recognized by the language server. There is no indication in the logs that is trying to read the file, almost as if the file type isn't picked up as a valid one.
Steps to Reproduce
The text was updated successfully, but these errors were encountered: