Skip to content

Commit

Permalink
open viewlet on showPreview (microsoft#10474)
Browse files Browse the repository at this point in the history
* open viewlet on shoePreview

* on showPreview reveal explorer
  • Loading branch information
MaddyDev authored May 18, 2020
1 parent d60b094 commit e46521c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions extensions/notebook/src/book/bookTreeView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ export class BookTreeViewProvider implements vscode.TreeDataProvider<BookTreeIte
}

if (showPreview) {
this._bookViewer.reveal(this.currentBook.bookItems[0], { expand: vscode.TreeItemCollapsibleState.Expanded, focus: true, select: true });
await this.showPreviewFile(urlToOpen);
}

Expand Down

0 comments on commit e46521c

Please sign in to comment.