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
pull/11448/head^2
Jaakko Paju 1 day ago committed by GitHub
parent 59b020ec91
commit 48e15f77f7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -742,6 +742,7 @@ injection-regex = "(js|javascript)"
language-id = "javascript" language-id = "javascript"
file-types = ["js", "mjs", "cjs", "rules", "es6", "pac", { glob = ".node_repl_history" }, { glob = "jakefile" }] file-types = ["js", "mjs", "cjs", "rules", "es6", "pac", { glob = ".node_repl_history" }, { glob = "jakefile" }]
shebangs = ["node"] shebangs = ["node"]
roots = [ "package.json" ]
comment-token = "//" comment-token = "//"
block-comment-tokens = { start = "/*", end = "*/" } block-comment-tokens = { start = "/*", end = "*/" }
language-servers = [ "typescript-language-server" ] language-servers = [ "typescript-language-server" ]
@ -769,6 +770,7 @@ scope = "source.jsx"
injection-regex = "jsx" injection-regex = "jsx"
language-id = "javascriptreact" language-id = "javascriptreact"
file-types = ["jsx"] file-types = ["jsx"]
roots = [ "package.json" ]
comment-token = "//" comment-token = "//"
block-comment-tokens = { start = "/*", end = "*/" } block-comment-tokens = { start = "/*", end = "*/" }
language-servers = [ "typescript-language-server" ] language-servers = [ "typescript-language-server" ]
@ -782,6 +784,7 @@ injection-regex = "(ts|typescript)"
language-id = "typescript" language-id = "typescript"
file-types = ["ts", "mts", "cts"] file-types = ["ts", "mts", "cts"]
shebangs = ["deno", "bun", "ts-node"] shebangs = ["deno", "bun", "ts-node"]
roots = [ "package.json", "tsconfig.json" ]
comment-token = "//" comment-token = "//"
block-comment-tokens = { start = "/*", end = "*/" } block-comment-tokens = { start = "/*", end = "*/" }
language-servers = [ "typescript-language-server" ] language-servers = [ "typescript-language-server" ]
@ -814,6 +817,7 @@ scope = "source.tsx"
injection-regex = "(tsx)" # |typescript injection-regex = "(tsx)" # |typescript
language-id = "typescriptreact" language-id = "typescriptreact"
file-types = ["tsx"] file-types = ["tsx"]
roots = [ "package.json", "tsconfig.json" ]
comment-token = "//" comment-token = "//"
block-comment-tokens = { start = "/*", end = "*/" } block-comment-tokens = { start = "/*", end = "*/" }
language-servers = [ "typescript-language-server" ] language-servers = [ "typescript-language-server" ]

Loading…
Cancel
Save