JSX/TSX Highlight/Comment being Broken #11549
-
SummaryHi! I recently switched my devices and reinstalled Helix, going up from version 22 -> 24, for some reason both the highlighting for JSX/TSX files are broken alongside the ability to comment code inside JSX scopes. Reproduction Steps
Helix logPlatformFedora Linux PRoot / macOS Terminal EmulatormacOS Terminal.app / Termux Installation Methodbrew / dnf (Fedora) Helix Version24.7 |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Please output the result of hx --health |
Beta Was this translation helpful? Give feedback.
-
This is my [[language]]
name = "typescript"
language-id = "typescript"
scope = "source.ts"
injection-regex = "^(ts|typescript)$"
file-types = ["ts", "tsx", "js", "jsx"]
shebangs = ["deno"]
roots = ["deno.json", "deno.jsonc", "package.json"]
language-servers = ["deno-lsp", "tailwindcss-ls"]
[language-server.deno-lsp]
command = "deno"
args = ["lsp"]
[language-server.deno-lsp.config.deno]
enable = true
[language-server.tailwindcss-ls]
command = "tailwindcss-language-server"
args = ["--stdio"]
config = { userLanguages = { astro = "html", "*.astro" = "html" } }
[language-server.astro-ls]
command = "astro-ls"
args = ["--stdio"]
config = { typescript = { tsdk = "/root/.pnpm-global/global/5/node_modules/typescript/lib/" }}
[[language]]
name = "astro"
scope = "source.astro"
injection-regex = "astro"
file-types = ["astro"]
language-servers = ["astro-ls", "tailwindcss-ls"] |
Beta Was this translation helpful? Give feedback.
-
there are seperate queries and a different grammar for tsx: Lines 790 to 803 in 38e6fcd instead you can just have: [[language]]
name = "typescript"
language-servers = ["deno-lsp", "tailwindcss-ls"]
[[language]]
name = "tsx"
language-servers = ["deno-lsp", "tailwindcss-ls"]
[[language]]
name = "javascript"
language-servers = ["deno-lsp", "tailwindcss-ls"]
[[language]]
name = "jsx"
language-servers = ["deno-lsp", "tailwindcss-ls"] |
Beta Was this translation helpful? Give feedback.
there are seperate queries and a different grammar for tsx:
helix/languages.toml
Lines 790 to 803 in 38e6fcd