Merge pull request #1808 from rr-develop/fix/kotlin-ls-refresh-request-handlers

This commit is contained in:
Dr. Dominik Jain authored and GitHub committed 2026-08-05 13:50:53 +02:00
commit 9558366327
2 files changed
+13 -1

No files matched your search

@@ -475,6 +475,16 @@ class KotlinLanguageServer(SolidLanguageServer):
self._indexing_complete.set()
self.server.on_request("client/registerCapability", do_nothing)
# We advertise `refreshSupport` for these features in the client
# capabilities above, so the server is entitled to send the matching
# refresh requests. Without a handler the client answers
# `MethodNotFound`, which the Kotlin LSP treats as fatal and shuts
# itself down, taking any in-flight request with it.
self.server.on_request("workspace/diagnostic/refresh", do_nothing)
self.server.on_request("workspace/inlayHint/refresh", do_nothing)
self.server.on_request("workspace/inlineValue/refresh", do_nothing)
self.server.on_request("workspace/semanticTokens/refresh", do_nothing)
self.server.on_request("workspace/codeLens/refresh", do_nothing)
self.server.on_notification("language/status", do_nothing)
self.server.on_notification("window/logMessage", window_log_message)
self.server.on_request("workspace/executeClientCommand", execute_client_command_handler)
@@ -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()