Skip to content

Commit

Permalink
Merge pull request #316 from hashicorp/tf-stacks-tf-test
Browse files Browse the repository at this point in the history
chore: Detect Terraform Stacks, Deploy, Test, and Mock files
  • Loading branch information
ansgarm authored Sep 13, 2024
2 parents 6a1ad1d + 8223603 commit 9b8e09f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,18 @@ function detectProduct(doc: vscode.TextDocument) {
if (fileName === '.terraform.lock.hcl') {
return 'terraform-lock';
}
if (fileName.endsWith('.tfstack.hcl')) {
return 'terraform-stack';
}
if (fileName.endsWith('.tfdeploy.hcl')) {
return 'terraform-deploy';
}
if (fileName.endsWith('.tftest.hcl')) {
return 'terraform-test';
}
if (fileName.endsWith('.tfmock.hcl')) {
return 'terraform-mock';
}
if (fileName === 'terragrunt.hcl') {
return 'terragrunt';
}
Expand Down

0 comments on commit 9b8e09f

Please sign in to comment.