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

Function removeFromHistory

src/renderer/src/stores/commandDataStore.ts:1474–1481  ·  view source on GitHub ↗

* 从历史记录中删除指定指令。

(
    commandPath: string,
    featureCode?: string,
    name?: string
  )

Source from the content-addressed store, hash-verified

1472 * 从历史记录中删除指定指令。
1473 */
1474 async function removeFromHistory(
1475 commandPath: string,
1476 featureCode?: string,
1477 name?: string
1478 ): Promise<void> {
1479 await window.ztools.removeFromHistory(commandPath, featureCode, name)
1480 // 后端会发送 history-changed 事件,触发重新加载
1481 }
1482
1483 // ==================== 固定应用相关 ====================
1484

Callers

nothing calls this directly

Calls 1

removeFromHistoryMethod · 0.80

Tested by

no test coverage detected