fix tagStoreCompletionItems
This commit is contained in:
parent
4316524226
commit
ba007b3558
@ -866,13 +866,13 @@ fn tagStoreCompletionItems(self: DocumentStore, arena: std.mem.Allocator, handle
|
|||||||
defer tracy_zone.end();
|
defer tracy_zone.end();
|
||||||
|
|
||||||
var dependencies = std.ArrayListUnmanaged(Uri){};
|
var dependencies = std.ArrayListUnmanaged(Uri){};
|
||||||
try dependencies.append(self.allocator, handle);
|
try dependencies.append(self.allocator, handle.uri);
|
||||||
try collectDependencies(self.allocator, self, handle, dependencies);
|
try collectDependencies(self.allocator, &self, handle, &dependencies);
|
||||||
|
|
||||||
// TODO Better solution for deciding what tags to include
|
// TODO Better solution for deciding what tags to include
|
||||||
var result_set = analysis.CompletionSet{};
|
var result_set = analysis.CompletionSet{};
|
||||||
|
|
||||||
for (dependencies) |uri| {
|
for (dependencies.items) |uri| {
|
||||||
// not every dependency is loaded which results in incomplete completion
|
// not every dependency is loaded which results in incomplete completion
|
||||||
const hdl = self.handles.get(uri) orelse continue;
|
const hdl = self.handles.get(uri) orelse continue;
|
||||||
const curr_set = @field(hdl.document_scope, name);
|
const curr_set = @field(hdl.document_scope, name);
|
||||||
|
Loading…
Reference in New Issue
Block a user