mirror of
https://github.com/purocean/yn.git
synced 2026-09-24 15:46:02 +08:00
feat: add tree refresh on 'tree.exclude' setting change
This commit is contained in:
@@ -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', () => {
|
||||
|
||||
Reference in New Issue
Block a user