mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-18 01:25:37 -05:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user