Only reveal parent node when finding notebook item (#15091) (#15103)

(cherry picked from commit 42cd650147)
This commit is contained in:
Charles Gagnon
2021-04-12 16:46:30 -07:00
committed by GitHub
parent e1aae951a3
commit 809d4de862

View File

@@ -461,7 +461,7 @@ export class BookTreeViewProvider implements vscode.TreeDataProvider<BookTreeIte
}
try {
// TO DO: Check why the reveal fails during initial load with 'TreeError [bookTreeView] Tree element not found'
await this._bookViewer.reveal(bookItemToExpand, { select: false, focus: true, expand: 3 });
await this._bookViewer.reveal(bookItemToExpand, { select: false, focus: true, expand: true });
}
catch (e) {
console.error(e);