Skip to content

Commit 5337be4

Browse files
authored
Merge pull request #914 from julia-vscode/sp/fix-find-ref
fix find_references
2 parents 6d504b8 + d376f22 commit 5337be4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/requests/features.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,8 @@ function find_references(textDocument::TextDocumentIdentifier, position::Positio
126126
locations = Location[]
127127
doc = getdocument(server, URI2(textDocument.uri))
128128
offset = get_offset(doc, position)
129-
x = get_expr1(getcst(doc), offset)
129+
x = get_identifier(getcst(doc), offset)
130+
130131
if x isa EXPR && StaticLint.hasref(x) && refof(x) isa StaticLint.Binding
131132
for r in refof(x).refs
132133
if r isa EXPR

0 commit comments

Comments
 (0)