Fix pinned notebooks navigator (#12246)

This commit is contained in:
Barbara Valdez
2020-09-11 16:39:40 -07:00
committed by GitHub
parent 4fee0210f6
commit 173a715a4d
3 changed files with 4 additions and 3 deletions

View File

@@ -59,7 +59,7 @@ export class BookTreeItem extends vscode.TreeItem {
if (book.isUntitled) {
this.contextValue = 'unsavedNotebook';
} else {
this.contextValue = 'savedNotebook';
this.contextValue = isBookItemPinned(book.contentPath) ? 'pinnedNotebook' : 'savedNotebook';
}
} else {
this.contextValue = book.type === BookTreeItemType.Notebook ? (isBookItemPinned(book.contentPath) ? 'pinnedNotebook' : 'savedNotebook') : 'section';