diff options
author | Kevin Sjöberg | 2022-01-15 06:23:06 +0000 |
---|---|---|
committer | GitHub | 2022-01-15 06:23:06 +0000 |
commit | 3a34036310d502fe99887c7f15f02784475d6dc5 (patch) | |
tree | f5b7ab4383e631bc9563ee9dc467dac89e65e70a /languages.toml | |
parent | 97e6f2a38f28bf0051b96fa6f0f5786746b83e74 (diff) |
Use the correct language ID for JavaScript & TypeScript (#1466)
* Use correct language ID for JavaScript/TypeScript
* Add missing slash
* Only calculate fallback when needed
Diffstat (limited to 'languages.toml')
-rw-r--r-- | languages.toml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/languages.toml b/languages.toml index 2c870ab2..78447578 100644 --- a/languages.toml +++ b/languages.toml @@ -128,7 +128,7 @@ roots = [] comment-token = "//" # TODO: highlights-jsx, highlights-params -language-server = { command = "typescript-language-server", args = ["--stdio"] } +language-server = { command = "typescript-language-server", args = ["--stdio"], language-id = "javascript" } indent = { tab-width = 2, unit = " " } [[language]] @@ -140,7 +140,7 @@ shebangs = [] roots = [] # TODO: highlights-jsx, highlights-params -language-server = { command = "typescript-language-server", args = ["--stdio"] } +language-server = { command = "typescript-language-server", args = ["--stdio"], language-id = "typescript"} indent = { tab-width = 2, unit = " " } [[language]] @@ -151,7 +151,7 @@ file-types = ["tsx"] roots = [] # TODO: highlights-jsx, highlights-params -language-server = { command = "typescript-language-server", args = ["--stdio"] } +language-server = { command = "typescript-language-server", args = ["--stdio"], language-id = "typescriptreact" } indent = { tab-width = 2, unit = " " } [[language]] |