Skip to content

Commit

Permalink
Allow logging for now
Browse files Browse the repository at this point in the history
  • Loading branch information
andyw8 committed Apr 3, 2024
1 parent 6b7d806 commit 0c18f57
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/ruby_lsp/ruby_lsp_rails/addon.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def initialize
sig { override.params(global_state: GlobalState, message_queue: Thread::Queue).void }
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}") unless ENV["RAILS_ENV"] == "test"
$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 }
end
Expand Down
6 changes: 3 additions & 3 deletions lib/ruby_lsp/ruby_lsp_rails/runner_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def initialize
@stdin.binmode # for Windows compatibility
@stdout.binmode # for Windows compatibility

$stderr.puts("Ruby LSP Rails booting server") unless ENV["RAILS_ENV"] == "test"
$stderr.puts("Ruby LSP Rails booting server")
count = 0

begin
Expand All @@ -72,7 +72,7 @@ def initialize
retry if count < MAX_RETRIES
end

$stderr.puts("Finished booting Ruby LSP Rails server") unless ENV["RAILS_ENV"] == "test"
$stderr.puts("Finished booting Ruby LSP Rails server")

unless ENV["RAILS_ENV"] == "test"
at_exit do
Expand All @@ -97,7 +97,7 @@ def model(name)

sig { void }
def trigger_reload
$stderr.puts("Reloading Rails application") unless ENV["RAILS_ENV"] == "test"
$stderr.puts("Reloading Rails application")
send_notification("reload")
rescue IncompleteMessageError
$stderr.puts("Ruby LSP Rails failed to trigger reload")
Expand Down

0 comments on commit 0c18f57

Please sign in to comment.