Skip to content

Commit

Permalink
Resolve issue with tfvars comment toggling (#937)
Browse files Browse the repository at this point in the history
This fixes tfvar file detection by adding the tfvar language and file extension to the activationEvents array. This ensures that even if a folder is opened with only tfvar files in it, our extension is activated.

It also adds the language-configuration file to the tfvars language contribution section, which enables language features like comment toggling. 

Co-authored-by: James Pogran <jpogran@outlook.com>
  • Loading branch information
NachoxMacho and jpogran committed Feb 14, 2022
1 parent 3951b16 commit f38e8dc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,10 @@
},
"activationEvents": [
"onLanguage:terraform",
"onLanguage:terraform-vars",
"onView:terraform-modules",
"workspaceContains:**/*.tf",
"workspaceContains:**/*.tfvars",
"onCommand:terraform.enableLanguageServer"
],
"main": "./out/extension",
Expand All @@ -61,7 +63,8 @@
"id": "terraform-vars",
"extensions": [
".tfvars"
]
],
"configuration": "./language-configuration.json"
},
{
"id": "json",
Expand Down

0 comments on commit f38e8dc

Please sign in to comment.