mirror of
https://github.com/helix-editor/helix.git
synced 2025-01-19 13:37:06 +04:00
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
This commit is contained in:
parent
6acd200028
commit
9a65118899
@ -453,7 +453,7 @@ includeInlayVariableTypeHints = true
|
|||||||
name = "typescript"
|
name = "typescript"
|
||||||
scope = "source.ts"
|
scope = "source.ts"
|
||||||
injection-regex = "(ts|typescript)"
|
injection-regex = "(ts|typescript)"
|
||||||
file-types = ["ts"]
|
file-types = ["ts", "mts", "cts"]
|
||||||
shebangs = []
|
shebangs = []
|
||||||
roots = []
|
roots = []
|
||||||
# TODO: highlights-params
|
# TODO: highlights-params
|
||||||
|
Loading…
Reference in New Issue
Block a user