From b6c9eac86c1902caffb7c0841a4ed0d7945802ea Mon Sep 17 00:00:00 2001 From: Riccardo Ferretti Date: Sun, 21 May 2023 18:33:28 +0200 Subject: [PATCH] Notes explorer ignores untitled documents --- packages/foam-vscode/src/features/panels/notes-explorer.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/foam-vscode/src/features/panels/notes-explorer.ts b/packages/foam-vscode/src/features/panels/notes-explorer.ts index 28621f82..7e5475b3 100644 --- a/packages/foam-vscode/src/features/panels/notes-explorer.ts +++ b/packages/foam-vscode/src/features/panels/notes-explorer.ts @@ -43,6 +43,7 @@ export default async function activate( // cause the tree view to take the focus from the item when // browsing the notes explorer if ( + item && !treeView.selection.find( i => i.resourceUri?.path === item.resourceUri.path )