MCPcopy
hub / github.com/ZToolsCenter/ZTools / reloadCommandAliases

Function reloadCommandAliases

src/renderer/src/stores/commandDataStore.ts:696–704  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

694 }
695
696 async function reloadCommandAliases(): Promise<void> {
697 try {
698 const commandAliases = await loadCommandAliases()
699 rebuildCommandCollections(commandAliases)
700 console.log('[CommandAliases] 指令别名已更新')
701 } catch (error) {
702 console.error('[CommandAliases] 重载指令别名失败:', error)
703 }
704 }
705
706 /**
707 * 重建 Fuse.js 搜索索引。

Callers 1

initializeDataFunction · 0.85

Calls 2

loadCommandAliasesFunction · 0.85

Tested by

no test coverage detected