Skip to content

Commit

Permalink
Wait for activation
Browse files Browse the repository at this point in the history
  • Loading branch information
andyw8 committed Apr 29, 2024
1 parent a9571f5 commit 83c0f1b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/ruby_lsp/ruby_lsp_rails/addon.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ def activate(global_state, message_queue)
@global_state = T.let(global_state, T.nilable(RubyLsp::GlobalState))
$stderr.puts("Activating Ruby LSP Rails addon v#{VERSION}")
# Start booting the real client in a background thread. Until this completes, the client will be a NullClient
Thread.new { @client = RunnerClient.create_client }
@client = RunnerClient.create_client
Thread.new { @client = RunnerClient.create_client }.join
end

sig { override.void }
Expand Down

0 comments on commit 83c0f1b

Please sign in to comment.