Fix decorations for modified notebooks in Books View (#14152)

* Tree item resource uri should be the root when it's a book and notebook path for notebooks
This commit is contained in:
Barbara Valdez
2021-02-03 18:17:08 -08:00
committed by GitHub
parent 3a89731036
commit cce8a961ac
2 changed files with 2 additions and 2 deletions

View File

@@ -82,7 +82,7 @@ export class BookTreeItem extends vscode.TreeItem {
}
this._rootContentPath = getContentPath(this.book.version, this.book.root, '');
this.tooltip = this.book.type === BookTreeItemType.Book ? this._rootContentPath : this.book.contentPath;
this.resourceUri = vscode.Uri.file(this.book.root);
this.resourceUri = this.book.type === BookTreeItemType.Book ? vscode.Uri.file(this.book.root) : vscode.Uri.file(this.book.contentPath);
}
}