Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Be able to detect Terraform files #5391

Merged
merged 1 commit into from Mar 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion packages/cspell-lib/src/lib/LanguageIds.ts
Expand Up @@ -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;
Expand Down Expand Up @@ -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'] },
Expand Down