Skip to content

Commit

Permalink
Stop running cancel request in the main thread (#3028)
Browse files Browse the repository at this point in the history
  • Loading branch information
vinistock authored Jan 9, 2025
1 parent 17d5fc7 commit 2376123
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/ruby_lsp/base_server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2376123

Please sign in to comment.