Skip to content

Commit

Permalink
Patch to silence Bundler
Browse files Browse the repository at this point in the history
  • Loading branch information
andyw8 committed Aug 7, 2024
1 parent 7c4abea commit a3ffb87
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions lib/ruby_lsp/setup_bundler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,20 @@

Bundler.ui.level = :silent

# We have found that silencing the Bundler UI level is not enough to prevent it from printing warnings in all
# situations, so we patch it too. See https://github.com/Shopify/ruby-lsp/pull/1199 for discussion.
module Bundler
module UI
class Shell
extend T::Sig

sig { params(msg: T.nilable(String), newline: T.nilable(T::Boolean)).void }
def info(msg = nil, newline = nil)
end
end
end
end

module RubyLsp
class SetupBundler
extend T::Sig
Expand Down

0 comments on commit a3ffb87

Please sign in to comment.