Skip to content

Commit 472f272

Browse files
authored
fix: Be able to detect Terraform files (#5391)
1 parent cf9b826 commit 472f272

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/cspell-lib/src/lib/LanguageIds.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { autoResolve } from './util/AutoResolve.js';
1212
// cspell:ignore jshintrc jscsrc eslintrc babelrc webmanifest mdown markdn psgi phtml pssc psrc gypi rhistory
1313
// cspell:ignore rprofile cshtml gemspec cginc ebuild zshrc zprofile zlogin zlogout zshenv dsql ascx axml
1414
// cspell:ignore bpmn csproj dita ditamap dtml fsproj fxml isml mxml adoc
15-
// cspell:ignore purescript purs dhall SPSS
15+
// cspell:ignore purescript purs dhall SPSS tfvars
1616

1717
export interface LanguageExtensionDefinition {
1818
id: string;
@@ -122,6 +122,8 @@ export const languageExtensionDefinitions: LanguageDefinitions = [
122122
{ id: 'svelte', extensions: ['.svelte'] },
123123
{ id: 'swift', extensions: ['.swift'] },
124124
{ id: 'toml', extensions: ['.toml'] },
125+
{ id: 'terraform', extensions: ['.tf', '.tf.json'] },
126+
{ id: 'tfvars', extensions: ['.tfvars'], description: 'Terraform Variables' },
125127
{ id: 'typescript', extensions: ['.ts', '.cts', '.mts'] },
126128
{ id: 'typescriptreact', extensions: ['.tsx'] },
127129
{ id: 'vb', extensions: ['.vb', '.brs', '.vbs', '.bas'] },

0 commit comments

Comments
 (0)