lib/ruby_lsp/utils.rb in ruby-lsp-0.13.2 vs lib/ruby_lsp/utils.rb in ruby-lsp-0.13.3
- old
+ new
@@ -10,9 +10,17 @@
rescue Bundler::GemfileNotFound
nil
end,
T.nilable(String),
)
+ GEMFILE_NAME = T.let(
+ begin
+ Bundler.with_original_env { Bundler.default_gemfile.basename.to_s }
+ rescue Bundler::GemfileNotFound
+ "Gemfile"
+ end,
+ String,
+ )
# A notification to be sent to the client
class Message
extend T::Sig
extend T::Helpers