aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis-Lapierre2023-03-24 18:13:01 +0000
committerGitHub2023-03-24 18:13:01 +0000
commit9a651188998bbc1584519ebf658cb5c2c31f4b21 (patch)
tree82e0d936cb1f0b6d5be02649b0d11fe1a27ee272
parent6acd2000284095ac6ec06aaa5c34d843a833800a (diff)
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
-rw-r--r--languages.toml2
1 files changed, 1 insertions, 1 deletions
diff --git a/languages.toml b/languages.toml
index 2bf9218e..670f3adf 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