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
pull/9/head
Alexis-Lapierre 1 year ago committed by GitHub
parent 6acd200028
commit 9a65118899
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save