mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Only reveal items in the books viewlet if the viewlet is visible. (#10234)
This commit is contained in:
@@ -110,9 +110,7 @@ export class BookTreeViewProvider implements vscode.TreeDataProvider<BookTreeIte
|
|||||||
this.currentBook = existingBook;
|
this.currentBook = existingBook;
|
||||||
} else {
|
} else {
|
||||||
await this.createAndAddBookModel(bookPath, !!isNotebook);
|
await this.createAndAddBookModel(bookPath, !!isNotebook);
|
||||||
let bookViewer = vscode.window.createTreeView(this.viewId, { showCollapseAll: true, treeDataProvider: this });
|
|
||||||
this.currentBook = this.books.find(book => book.bookPath === bookPath);
|
this.currentBook = this.books.find(book => book.bookPath === bookPath);
|
||||||
bookViewer.reveal(this.currentBook.bookItems[0], { expand: vscode.TreeItemCollapsibleState.Expanded, focus: true, select: true });
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (showPreview) {
|
if (showPreview) {
|
||||||
|
|||||||
Reference in New Issue
Block a user