From f3e7735cde63262523016226458153966380435b Mon Sep 17 00:00:00 2001 From: purocean Date: Fri, 12 Jul 2024 16:12:20 +0800 Subject: [PATCH] feat: add tree refresh on 'tree.exclude' setting change --- src/renderer/startup.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/renderer/startup.ts b/src/renderer/startup.ts index 73a452d6..f4d35d82 100644 --- a/src/renderer/startup.ts +++ b/src/renderer/startup.ts @@ -20,6 +20,7 @@ import * as extension from '@fe/others/extension' import { setTheme } from '@fe/services/theme' import { toggleOutline } from '@fe/services/workbench' import * as view from '@fe/services/view' +import * as tree from '@fe/services/tree' import * as editor from '@fe/services/editor' import plugins from '@fe/plugins' import ctx from '@fe/context' @@ -147,6 +148,10 @@ registerHook('SETTING_CHANGED', ({ schema, changedKeys }) => { } }) } + + if (changedKeys.includes('tree.exclude')) { + tree.refreshTree() + } }) registerHook('EXTENSION_READY', () => {