From d376f2235437de7d66f021579adcb4b422ae411e Mon Sep 17 00:00:00 2001 From: Sebastian Pfitzner Date: Wed, 17 Mar 2021 12:05:58 +0100 Subject: [PATCH] fix find_references --- src/requests/features.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/requests/features.jl b/src/requests/features.jl index 22af0df8..e0fba456 100644 --- a/src/requests/features.jl +++ b/src/requests/features.jl @@ -126,7 +126,8 @@ function find_references(textDocument::TextDocumentIdentifier, position::Positio locations = Location[] doc = getdocument(server, URI2(textDocument.uri)) offset = get_offset(doc, position) - x = get_expr1(getcst(doc), offset) + x = get_identifier(getcst(doc), offset) + if x isa EXPR && StaticLint.hasref(x) && refof(x) isa StaticLint.Binding for r in refof(x).refs if r isa EXPR