Skip to content

Commit 3a549f6

Browse files
committed
fix tests
1 parent 5d516cf commit 3a549f6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/requests/features.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ function find_references(textDocument::TextDocumentIdentifier, position::Positio
127127
doc = getdocument(server, URI2(textDocument.uri))
128128
offset = get_offset(doc, position)
129129
x = get_expr1(getcst(doc), offset)
130+
x === nothing && return locations
130131
for_each_ref(x) do r, doc1, o
131132
push!(locations, Location(doc1._uri, Range(doc1, o .+ (0:r.span))))
132133
end

0 commit comments

Comments
 (0)