Skip to content

Commit 86d613b

Browse files
committed
wip
1 parent 97d4519 commit 86d613b

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

lib/ruby_lsp/ruby_lsp_rails/addon.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,7 @@ def initialize
2929
def activate(global_state, message_queue)
3030
@global_state = T.let(global_state, T.nilable(RubyLsp::GlobalState))
3131
$stderr.puts("Activating Ruby LSP Rails addon v#{VERSION}")
32-
# Start booting the real client in a background thread. Until this completes, the client will be a NullClient
33-
runner_thread = Thread.new { @client = RunnerClient.create_client }
34-
runner_thread.join # if ENV["RAILS_ENV"] == "test"
32+
@client = RunnerClient.create_client
3533
end
3634

3735
sig { override.void }

lib/ruby_lsp/ruby_lsp_rails/runner_client.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,6 @@ def initialize
7474

7575
$stderr.puts("Finished booting Ruby LSP Rails server")
7676

77-
unless ActionDispatch::Routing::Mapper.route_source_locations
78-
$stderr.puts("Warning: `route_source_locations` is not enabled in the Rails application. Some features will be unavailable.")
79-
end
80-
8177
unless ENV["RAILS_ENV"] == "test"
8278
at_exit do
8379
if @wait_thread.alive?

0 commit comments

Comments
 (0)