From 9a651188998bbc1584519ebf658cb5c2c31f4b21 Mon Sep 17 00:00:00 2001 From: Alexis-Lapierre <128792625+Alexis-Lapierre@users.noreply.github.com> Date: Fri, 24 Mar 2023 19:13:01 +0100 Subject: [PATCH] Recognize .cts and .mts file type as TypeScript (#6424) TypeScript can use three type of file extensions: - .ts for regular TypeScript - .cts for CommonJS modules - .mts for ES modules Official documentation on supported file extensions: https://www.typescriptlang.org/docs/handbook/esm-node.html#new-file-extensions --- languages.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/languages.toml b/languages.toml index 2bf9218e5..670f3adf9 100644 --- a/languages.toml +++ b/languages.toml @@ -453,7 +453,7 @@ includeInlayVariableTypeHints = true name = "typescript" scope = "source.ts" injection-regex = "(ts|typescript)" -file-types = ["ts"] +file-types = ["ts", "mts", "cts"] shebangs = [] roots = [] # TODO: highlights-params