Skip to content

Commit 0f9bb08

Browse files
authored
Merge pull request #592 from Shopify/ar/bump-ruby-lsp
Bump ruby-lsp to v0.23.14
2 parents d63f245 + 7101bf7 commit 0f9bb08

File tree

10 files changed

+12084
-10953
lines changed

10 files changed

+12084
-10953
lines changed

Gemfile.lock

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ PATH
22
remote: .
33
specs:
44
ruby-lsp-rails (0.4.0)
5-
ruby-lsp (>= 0.23.0, < 0.24.0)
5+
ruby-lsp (>= 0.23.14, < 0.24.0)
66

77
GEM
88
remote: https://rubygems.org/
@@ -104,7 +104,7 @@ GEM
104104
json (2.10.1)
105105
language_server-protocol (3.17.0.4)
106106
lint_roller (1.1.0)
107-
logger (1.6.6)
107+
logger (1.7.0)
108108
loofah (2.24.0)
109109
crass (~> 1.0.2)
110110
nokogiri (>= 1.12.0)
@@ -150,7 +150,7 @@ GEM
150150
pp (0.6.2)
151151
prettyprint
152152
prettyprint (0.2.0)
153-
prism (1.3.0)
153+
prism (1.4.0)
154154
psych (5.2.3)
155155
date
156156
stringio
@@ -199,7 +199,7 @@ GEM
199199
rbi (0.2.4)
200200
prism (~> 1.0)
201201
sorbet-runtime (>= 0.5.9204)
202-
rbs (3.8.1)
202+
rbs (3.9.2)
203203
logger
204204
rdoc (6.12.0)
205205
psych (>= 4.0.0)
@@ -230,7 +230,7 @@ GEM
230230
rubocop (~> 1.62)
231231
rubocop-sorbet (0.8.9)
232232
rubocop (>= 1)
233-
ruby-lsp (0.23.11)
233+
ruby-lsp (0.23.14)
234234
language_server-protocol (~> 3.17.0)
235235
prism (>= 1.2, < 2.0)
236236
rbs (>= 3, < 4)

lib/ruby_lsp/ruby_lsp_rails/completion.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def handle_active_record_where_completions(node:, receiver:)
3636
resolved_class = @client.model(receiver.name.to_s)
3737
return if resolved_class.nil?
3838

39-
arguments = T.must(@node_context.call_node).arguments&.arguments
39+
arguments = @node_context.call_node.arguments&.arguments
4040
indexed_call_node_args = T.let({}, T::Hash[String, Prism::Node])
4141

4242
if arguments

lib/ruby_lsp/ruby_lsp_rails/hover.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def on_constant_path_node_enter(node)
3131
entries = @index.resolve(node.slice, @nesting)
3232
return unless entries
3333

34-
name = T.must(entries.first).name
34+
name = entries.first.name
3535
generate_column_content(name)
3636
end
3737

@@ -40,7 +40,7 @@ def on_constant_read_node_enter(node)
4040
entries = @index.resolve(node.name.to_s, @nesting)
4141
return unless entries
4242

43-
generate_column_content(T.must(entries.first).name)
43+
generate_column_content(entries.first.name)
4444
end
4545

4646
private

ruby-lsp-rails.gemspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ Gem::Specification.new do |spec|
2424
Dir["lib/**/*", "LICENSE.txt", "Rakefile", "README.md"]
2525
end
2626

27-
spec.add_dependency("ruby-lsp", ">= 0.23.0", "< 0.24.0")
27+
spec.add_dependency("ruby-lsp", ">= 0.23.14", "< 0.24.0")
2828
end
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)