From 164e017375807152efbbae29c988a96ecbced177 Mon Sep 17 00:00:00 2001 From: Vinicius Stock Date: Mon, 15 Apr 2024 09:43:36 -0400 Subject: [PATCH] Run `initialized` directly without pushing to queue (#1927) --- lib/ruby_lsp/base_server.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ruby_lsp/base_server.rb b/lib/ruby_lsp/base_server.rb index 101db1b6b..0419cb2eb 100644 --- a/lib/ruby_lsp/base_server.rb +++ b/lib/ruby_lsp/base_server.rb @@ -62,7 +62,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", "textDocument/didOpen", "textDocument/didClose", "textDocument/didChange" + when "initialize", "initialized", "textDocument/didOpen", "textDocument/didClose", "textDocument/didChange" process_message(message) when "shutdown" $stderr.puts("Shutting down Ruby LSP...")