From eee16fcb3e4a6ba1f2c896fe183e40d664f5faf4 Mon Sep 17 00:00:00 2001 From: Nathan Ridge Date: Fri, 15 Mar 2019 00:00:17 -0400 Subject: [PATCH] Use all the type hierarchy levels the server sends (fixes #4540) --- packages/typehierarchy/src/browser/tree/typehierarchy-tree.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/typehierarchy/src/browser/tree/typehierarchy-tree.ts b/packages/typehierarchy/src/browser/tree/typehierarchy-tree.ts index 6a511a984c50c..11c2ac019ea63 100644 --- a/packages/typehierarchy/src/browser/tree/typehierarchy-tree.ts +++ b/packages/typehierarchy/src/browser/tree/typehierarchy-tree.ts @@ -131,6 +131,10 @@ export namespace TypeHierarchyTree { export function create(item: TypeHierarchyItem, direction: TypeHierarchyDirection, resolved: boolean = true): Node { const items = TypeHierarchyDirection.Children === direction ? item.children : item.parents; + if (items && items.length > 0) { + // If the server sent more levels than requested, use them. + resolved = true; + } const node = { id: v4(), name: item.name,