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

This commit is contained in:
Charles Gagnon
2021-04-12 13:12:04 -07:00
committed by GitHub
parent 862ffcf7d2
commit 42cd650147

View File

@@ -461,7 +461,7 @@ export class BookTreeViewProvider implements vscode.TreeDataProvider<BookTreeIte
} }
try { try {
// TO DO: Check why the reveal fails during initial load with 'TreeError [bookTreeView] Tree element not found' // 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) { catch (e) {
console.error(e); console.error(e);