diff --git a/lib/ruby_lsp/ruby_lsp_rails/runner_client.rb b/lib/ruby_lsp/ruby_lsp_rails/runner_client.rb index 3b0b724f..6092393d 100644 --- a/lib/ruby_lsp/ruby_lsp_rails/runner_client.rb +++ b/lib/ruby_lsp/ruby_lsp_rails/runner_client.rb @@ -27,7 +27,7 @@ def create_client(outgoing_queue) NullClient.new end - rescue Errno::ENOENT, StandardError => e # rubocop:disable Lint/ShadowedException + rescue StandardError => e unless outgoing_queue.closed? outgoing_queue << RubyLsp::Notification.window_log_message( <<~MESSAGE.chomp,