# File lib/ruby_lsp/ruby_lsp_rails/addon.rb, line 21definitializesuper# We first initialize the client as a NullClient, so that we can start the server in a background thread. Until# the real client is initialized, features that depend on it will not be blocked by using the NullClient@client = T.let(NullClient.new, RunnerClient)
end
Public Instance Methods
activate(global_state, message_queue)
# File lib/ruby_lsp/ruby_lsp_rails/addon.rb, line 30defactivate(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 NullClientThread.new { @client = RunnerClient.create_client }
register_additional_file_watchers(global_state:global_state, message_queue:message_queue)
end
# File lib/ruby_lsp/ruby_lsp_rails/addon.rb, line 74defcreate_document_symbol_listener(response_builder, dispatcher)
DocumentSymbol.new(response_builder, dispatcher)
end