MCPcopy
hub / github.com/npmx-dev/npmx.dev / clearContextCommandActions

Function clearContextCommandActions

app/composables/useCommandPalette.ts:144–150  ·  view source on GitHub ↗
(scopeId: string)

Source from the content-addressed store, hash-verified

142 }
143
144 function clearContextCommandActions(scopeId: string) {
145 const actionIds = actionIdsByScopeId.get(scopeId) ?? []
146 actionIds.forEach(actionId => {
147 actionRegistry.delete(actionId)
148 })
149 actionIdsByScopeId.delete(scopeId)
150 }
151
152 function resolveContextCommandAction(actionId: string) {
153 return actionRegistry.get(actionId)

Callers 1

Calls 2

getMethod · 0.65
deleteMethod · 0.65

Tested by

no test coverage detected