MCPcopy Index your code
hub / github.com/ZToolsCenter/ZTools / setDisabledPluginPaths

Function setDisabledPluginPaths

src/renderer/src/stores/commandDataStore.ts:204–208  ·  view source on GitHub ↗
(paths: unknown)

Source from the content-addressed store, hash-verified

202 const disabledMainPushPluginNames = ref<string[]>([])
203
204 function setDisabledPluginPaths(paths: unknown): void {
205 disabledPluginPaths.value = Array.isArray(paths)
206 ? paths.filter((item): item is string => typeof item === 'string')
207 : []
208 }
209
210 function getEnabledPluginPaths(plugins: any[], disabledPaths?: string[]): Set<string> {
211 const paths = disabledPaths ?? disabledPluginPaths.value

Callers 3

loadDisabledPluginsFunction · 0.85
reloadPluginCommandsFunction · 0.85
loadCommandsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected