Merge pull request #774 from nullptrdevs/patch-1

Disable label references until #728 is resolved
This commit is contained in:
Lee Cannon 2022-11-22 17:37:13 +00:00 committed by GitHub
commit 8428652146
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2241,7 +2241,9 @@ fn generalReferencesHandler(server: *Server, writer: anytype, id: types.RequestI
};
const locations = if (pos_context == .label)
try references.labelReferences(allocator, decl, server.offset_encoding, include_decl)
// FIXME https://github.com/zigtools/zls/issues/728
// try references.labelReferences(allocator, decl, server.offset_encoding, include_decl)
std.ArrayListUnmanaged(types.Location){}
else
try references.symbolReferences(
&server.arena,