mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-12 18:16:43 +00:00
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:
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()
|
||||
|
||||
Reference in new issue
Block a user