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

@@ -291,7 +291,7 @@ export class NotebookExplorerViewPaneContainer extends ViewPaneContainer {
filesToIncludeFiltered = filesToIncludeFiltered + path.join(folderToSearch.folder.fsPath, '**', '*.md') + ',' + path.join(folderToSearch.folder.fsPath, '**', '*.ipynb') + ',';
} else {
let pattern = {};
let rootFolder = URI.file(root.resourceUri.path);
let rootFolder = URI.file(path.dirname(root.resourceUri.path));
let pathToNotebook = isString(root.tooltip) ? root.tooltip : root.tooltip.value;
let baseName = path.join('**', path.basename(pathToNotebook));
pattern[baseName] = true;