From 23761233d04d8fec8b113d7dac84543904a761fb Mon Sep 17 00:00:00 2001 From: Vinicius Stock Date: Thu, 9 Jan 2025 09:41:42 -0500 Subject: [PATCH] Stop running cancel request in the main thread (#3028) --- lib/ruby_lsp/base_server.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/ruby_lsp/base_server.rb b/lib/ruby_lsp/base_server.rb index 49c813a88..ed3cd0c09 100644 --- a/lib/ruby_lsp/base_server.rb +++ b/lib/ruby_lsp/base_server.rb @@ -90,8 +90,7 @@ def start # The following requests need to be executed in the main thread directly to avoid concurrency issues. Everything # else is pushed into the incoming queue case method - when "initialize", "initialized", "textDocument/didOpen", "textDocument/didClose", "textDocument/didChange", - "$/cancelRequest" + when "initialize", "initialized", "textDocument/didOpen", "textDocument/didClose", "textDocument/didChange" process_message(message) when "shutdown" @global_state.synchronize do