From 164ecec8e9f8eed16587f840ca5ce7c9fd86aec4 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 27 May 2026 04:03:30 +0000 Subject: [PATCH 1/2] Initial plan From c172e199cbd3826c3fde162d8705f014e176e20a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 27 May 2026 04:05:51 +0000 Subject: [PATCH 2/2] fix: keep explicit focus modes across reloads --- src/core/tree-focus.ts | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/src/core/tree-focus.ts b/src/core/tree-focus.ts index 02d52f2..9dde95b 100644 --- a/src/core/tree-focus.ts +++ b/src/core/tree-focus.ts @@ -167,19 +167,8 @@ export class TreeFocus { */ private async performPluginCleanupTask(): Promise { - const allItemPaths: string[] = []; - let fileExplorers = this.getFileExplorers(); - - for (let fiExplorer of fileExplorers) - { - FileExplorerHelper.forEveryItem(fiExplorer, (path, item) => - { - allItemPaths.push(path); - }); - } - const availableExplicitPaths = [...PluginSettings.getExplicitModePaths()]; - const orphanedExplicitPaths = availableExplicitPaths.filter((path) => allItemPaths.includes(path) === false); + const orphanedExplicitPaths = availableExplicitPaths.filter((path) => this.app.vault.getAbstractFileByPath(path) === null); Log.debug('orphaned explicit paths', orphanedExplicitPaths); @@ -333,4 +322,3 @@ export class TreeFocus { } -