From 19862e97b9e693b4aebac2b7790843f69fb7ab6a Mon Sep 17 00:00:00 2001 From: Jason Dent Date: Thu, 21 Mar 2024 20:11:46 +0100 Subject: [PATCH] fix: Be able to detect Terraform files --- packages/cspell-lib/src/lib/LanguageIds.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/cspell-lib/src/lib/LanguageIds.ts b/packages/cspell-lib/src/lib/LanguageIds.ts index 3e83bd0cd7a..2c2830fca2a 100644 --- a/packages/cspell-lib/src/lib/LanguageIds.ts +++ b/packages/cspell-lib/src/lib/LanguageIds.ts @@ -12,7 +12,7 @@ import { autoResolve } from './util/AutoResolve.js'; // cspell:ignore jshintrc jscsrc eslintrc babelrc webmanifest mdown markdn psgi phtml pssc psrc gypi rhistory // cspell:ignore rprofile cshtml gemspec cginc ebuild zshrc zprofile zlogin zlogout zshenv dsql ascx axml // cspell:ignore bpmn csproj dita ditamap dtml fsproj fxml isml mxml adoc -// cspell:ignore purescript purs dhall SPSS +// cspell:ignore purescript purs dhall SPSS tfvars export interface LanguageExtensionDefinition { id: string; @@ -122,6 +122,8 @@ export const languageExtensionDefinitions: LanguageDefinitions = [ { id: 'svelte', extensions: ['.svelte'] }, { id: 'swift', extensions: ['.swift'] }, { id: 'toml', extensions: ['.toml'] }, + { id: 'terraform', extensions: ['.tf', '.tf.json'] }, + { id: 'tfvars', extensions: ['.tfvars'], description: 'Terraform Variables' }, { id: 'typescript', extensions: ['.ts', '.cts', '.mts'] }, { id: 'typescriptreact', extensions: ['.tsx'] }, { id: 'vb', extensions: ['.vb', '.brs', '.vbs', '.bas'] },