diff --git a/.changes/unreleased/ENHANCEMENTS-20240912-115949.yaml b/.changes/unreleased/ENHANCEMENTS-20240912-115949.yaml new file mode 100644 index 000000000..27599583c --- /dev/null +++ b/.changes/unreleased/ENHANCEMENTS-20240912-115949.yaml @@ -0,0 +1,6 @@ +kind: ENHANCEMENTS +body: Static schema support for Terraform Test and Mock files +time: 2024-09-12T11:59:49.158918+02:00 +custom: + Issue: "1812" + Repository: vscode-terraform diff --git a/src/extension.ts b/src/extension.ts index a7cf29bd5..89b40e13d 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -43,6 +43,8 @@ const documentSelector: DocumentSelector = [ { scheme: 'file', language: 'terraform-vars' }, { scheme: 'file', language: 'terraform-stack' }, { scheme: 'file', language: 'terraform-deploy' }, + { scheme: 'file', language: 'terraform-test' }, + { scheme: 'file', language: 'terraform-mock' }, ]; const outputChannel = vscode.window.createOutputChannel(brand); const tfcOutputChannel = vscode.window.createOutputChannel('HCP Terraform'); @@ -84,6 +86,8 @@ export async function activate(context: vscode.ExtensionContext): Promise vscode.workspace.createFileSystemWatcher('**/*.tfvars'), vscode.workspace.createFileSystemWatcher('**/*.tfstack.hcl'), vscode.workspace.createFileSystemWatcher('**/*.tfdeploy.hcl'), + vscode.workspace.createFileSystemWatcher('**/*.tftest.hcl'), + vscode.workspace.createFileSystemWatcher('**/*.tfmock.hcl'), ], }, diagnosticCollectionName: 'HashiCorpTerraform',