mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-24 18:36:18 +04:00
Add package.json and (and tsconfig.json) for TS/JS language config roots (#10652)
* Add package.json and tsconfig.json for TS/JS language config roots * Add root to Javascript
This commit is contained in:
parent
59b020ec91
commit
48e15f77f7
@ -742,6 +742,7 @@ injection-regex = "(js|javascript)"
|
||||
language-id = "javascript"
|
||||
file-types = ["js", "mjs", "cjs", "rules", "es6", "pac", { glob = ".node_repl_history" }, { glob = "jakefile" }]
|
||||
shebangs = ["node"]
|
||||
roots = [ "package.json" ]
|
||||
comment-token = "//"
|
||||
block-comment-tokens = { start = "/*", end = "*/" }
|
||||
language-servers = [ "typescript-language-server" ]
|
||||
@ -769,6 +770,7 @@ scope = "source.jsx"
|
||||
injection-regex = "jsx"
|
||||
language-id = "javascriptreact"
|
||||
file-types = ["jsx"]
|
||||
roots = [ "package.json" ]
|
||||
comment-token = "//"
|
||||
block-comment-tokens = { start = "/*", end = "*/" }
|
||||
language-servers = [ "typescript-language-server" ]
|
||||
@ -782,6 +784,7 @@ injection-regex = "(ts|typescript)"
|
||||
language-id = "typescript"
|
||||
file-types = ["ts", "mts", "cts"]
|
||||
shebangs = ["deno", "bun", "ts-node"]
|
||||
roots = [ "package.json", "tsconfig.json" ]
|
||||
comment-token = "//"
|
||||
block-comment-tokens = { start = "/*", end = "*/" }
|
||||
language-servers = [ "typescript-language-server" ]
|
||||
@ -814,6 +817,7 @@ scope = "source.tsx"
|
||||
injection-regex = "(tsx)" # |typescript
|
||||
language-id = "typescriptreact"
|
||||
file-types = ["tsx"]
|
||||
roots = [ "package.json", "tsconfig.json" ]
|
||||
comment-token = "//"
|
||||
block-comment-tokens = { start = "/*", end = "*/" }
|
||||
language-servers = [ "typescript-language-server" ]
|
||||
|
Loading…
Reference in New Issue
Block a user