feat: add tree refresh on 'tree.exclude' setting change

This commit is contained in:
purocean
2024-07-12 16:12:20 +08:00
parent ae08045070
commit f3e7735cde
+5
View File
@@ -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', () => {