We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73a304f commit e8b4291Copy full SHA for e8b4291
src/type-hierarchy.ts
@@ -258,9 +258,11 @@ class TypeHierarchyProvider implements
258
await this.client.sendRequest(ResolveTypeHierarchyRequest.type, {
259
item: element,
260
direction: TypeHierarchyDirection.Children,
261
- resolve: 1
+ resolve: 2 // We need 2 levels to understand which collapsible state to use
262
});
263
element.children = resolved?.children;
264
+ // Cut-of existing sub-children to resolve them later
265
+ element.children?.forEach(x => { if (x.children?.length !== 0) { x.children = undefined; } });
266
}
267
return element.children ?? [];
268
0 commit comments