fix(svelte): correct inlayHint refresh method name

`workspace/inlayHints/refresh` (plural) is not a method in the LSP
specification — the refresh request is `workspace/inlayHint/refresh`.
The handler could therefore never be invoked, so the request it was
meant to absorb would still be answered with `MethodNotFound`.
This commit is contained in:
rr-develop committed 2026-08-03 11:07:15 +02:00
1 parent bfa45a6a11
commit d3293b2c63
1 file changed
+3 -1
@@ -592,7 +592,9 @@ class SvelteLanguageServer(SolidLanguageServer):
self.server.on_request("workspace/applyEdit", workspace_apply_edit_handler)
self.server.on_request("workspace/configuration", configuration_handler)
self.server.on_request("workspace/diagnostic/refresh", do_nothing)
self.server.on_request("workspace/inlayHints/refresh", do_nothing)
# `inlayHint` is singular per the LSP spec; the previous `inlayHints`
# spelling matched no real request and was therefore never invoked.
self.server.on_request("workspace/inlayHint/refresh", do_nothing)
self.server.on_request("workspace/semanticTokens/refresh", do_nothing)
self._wrap_notify_send_for_ts_js_mirror()
self.server.start()