Revert "Revert "OE clicking and awaiting the expansion calls (#6761)" (#6866)" (#6875)

This reverts commit a8d831d32e.
This commit is contained in:
Amir Omidi
2019-08-22 13:16:39 -07:00
committed by GitHub
parent 1a97313d19
commit ab9c4e0cbd
6 changed files with 48 additions and 34 deletions

View File

@@ -120,10 +120,10 @@ export class TaskHistoryView {
//Get the tree Input
let treeInput = this._taskService.getAllTasks();
if (treeInput) {
this._tree.setInput(treeInput).then(() => {
this._tree.setInput(treeInput).then(async () => {
// Make sure to expand all folders that where expanded in the previous session
if (targetsToExpand) {
this._tree.expandAll(targetsToExpand);
await this._tree.expandAll(targetsToExpand);
}
if (selectedElement) {
this._tree.select(selectedElement);