Astro LSP broken because of inlay hints #7484
-
SummaryThe Astro LSP responds with the error, Worth noting that I have inlay hints disabled. Reproduction Steps
[[language]]
name = "astro"
scope = "source.astro"
injection-regex = "astro"
file-types = ["astro"]
roots = ["package.json", "astro.config.mjs"]
language-server = { command = "astro-ls", args = ["--stdio"] }
mkdir .helix
touch .helix/languages.toml
[[language]]
name = "astro"
[[language.config]]
environment = "node"
[[language.config.typescript]]
sdk = "${config.home.homeDirectory}/PATH/TO/THIS/PROJECT/node_modules/typescript/lib"
Helix log~/.cache/helix/helix.log
PlatformLinux Terminal Emulatorxterm-256color Helix Versionhelix 23.05 (7f5940b) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
We tell the language server that we don't support the refresh method: Lines 532 to 534 in e0bb032 So astro-ls should not be sending this request. We're sending a JSONRPC error saying that we don't implement the |
Beta Was this translation helpful? Give feedback.
We tell the language server that we don't support the refresh method:
helix/helix-lsp/src/client.rs
Lines 532 to 534 in e0bb032
So astro-ls should not be sending this request. We're sending a JSONRPC error saying that we don't implement the
workspace/inlayHint/refresh
method as a response when it sends that request. It looks like the server isn't handling the rejected promise, so that promise kills the whole server. These are both astro-ls issues rather than Helix issues.