From 8223603038f330fc5ce29362803f8b7e6a421358 Mon Sep 17 00:00:00 2001 From: Ansgar Mertens Date: Fri, 13 Sep 2024 10:40:05 +0200 Subject: [PATCH] chore: Detect Terraform Stacks, Deploy, Test, and Mock files --- src/common.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/common.ts b/src/common.ts index 3412dfe..80fbdfa 100644 --- a/src/common.ts +++ b/src/common.ts @@ -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'; }