ruby-lsp 0.24.0 → 0.24.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/ruby_lsp/requests/references.rb +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 981f87e306aa96edd6d2e04fc274d5da24ede96d3e3333bcfdeb63039e86c9ab
|
4
|
+
data.tar.gz: 5405216e985bed5ec6bce692baeeca9611980edc53fadf4655d00503488c277d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a749ebc7c81100f0c76431d68865960ad8aeb04ed3aad37dad18c008e885a50d224157a2fdcd44b15abc2d5d5f8d7a4a2345f187662707478dbc66d191c214a2
|
7
|
+
data.tar.gz: 19a288a8121a4cf86b5fd60b9c6d11c4fd3cb26330f7667ac59b4742dbe91328b9f742dca5fb371bb58ad565afb9ec58516eb6b68dd85e641a800f89a23f81e9
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.24.
|
1
|
+
0.24.1
|
@@ -66,7 +66,7 @@ module RubyLsp
|
|
66
66
|
# of reading from disk
|
67
67
|
next if @store.key?(uri)
|
68
68
|
|
69
|
-
parse_result = Prism.
|
69
|
+
parse_result = Prism.parse_lex_file(path)
|
70
70
|
collect_references(reference_target, parse_result, uri)
|
71
71
|
rescue Errno::EISDIR, Errno::ENOENT
|
72
72
|
# If `path` is a directory, just ignore it and continue. If the file doesn't exist, then we also ignore it.
|
@@ -111,7 +111,7 @@ module RubyLsp
|
|
111
111
|
end
|
112
112
|
end
|
113
113
|
|
114
|
-
#: (RubyIndexer::ReferenceFinder::Target target, Prism::
|
114
|
+
#: (RubyIndexer::ReferenceFinder::Target target, Prism::LexResult parse_result, URI::Generic uri) -> void
|
115
115
|
def collect_references(target, parse_result, uri)
|
116
116
|
dispatcher = Prism::Dispatcher.new
|
117
117
|
finder = RubyIndexer::ReferenceFinder.new(
|
@@ -121,7 +121,7 @@ module RubyLsp
|
|
121
121
|
uri,
|
122
122
|
include_declarations: @params.dig(:context, :includeDeclaration) || true,
|
123
123
|
)
|
124
|
-
dispatcher.visit(parse_result.value)
|
124
|
+
dispatcher.visit(parse_result.value.first)
|
125
125
|
|
126
126
|
finder.references.each do |reference|
|
127
127
|
@locations << Interface::Location.new(
|