load handles on demand instead of ahead of time

This commit is contained in:
Techatrix
2022-10-16 17:26:06 +02:00
parent 25ce5dd8aa
commit 0cfc792849
2 changed files with 37 additions and 105 deletions

View File

@@ -485,7 +485,7 @@ pub fn symbolReferences(
var imports = std.ArrayListUnmanaged(*const DocumentStore.Handle){};
for (store.handles.values()) |*handle| {
for (store.handles.values()) |handle| {
if (skip_std_references and std.mem.indexOf(u8, handle.uri, "std") != null) {
if (!include_decl or !std.mem.eql(u8, handle.uri, curr_handle.uri))
continue;