mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-08 09:38:26 -05:00
Ensure that we close editors before utils tests (#13391)
This commit is contained in:
@@ -328,7 +328,7 @@ export class BookTreeViewProvider implements vscode.TreeDataProvider<BookTreeIte
|
||||
if (shouldReveal || this._bookViewer?.visible) {
|
||||
bookItem = notebookPath ? await this.findAndExpandParentNode(notebookPath) : undefined;
|
||||
// Select + focus item in viewlet if books viewlet is already open, or if we pass in variable
|
||||
if (bookItem?.contextValue !== 'pinnedNotebook') {
|
||||
if (bookItem?.contextValue && bookItem.contextValue !== 'pinnedNotebook') {
|
||||
// Note: 3 is the maximum number of levels that the vscode APIs let you expand to
|
||||
await this._bookViewer.reveal(bookItem, { select: true, focus: true, expand: true });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user