MCPcopy Index your code
hub / github.com/npmx-dev/npmx.dev / closeThen

Function closeThen

app/composables/useCommandPaletteCommands.ts:36–41  ·  view source on GitHub ↗
(run: () => void | Promise<void>)

Source from the content-addressed store, hash-verified

34 } = useCommandPalette()
35
36 function closeThen(run: () => void | Promise<void>) {
37 return async () => {
38 close()
39 await run()
40 }
41 }
42
43 function groupLabel(group: CommandPaletteGroup): string {
44 const packageName = packageContext.value?.packageName

Callers 1

Calls 2

closeFunction · 0.70
runFunction · 0.50

Tested by

no test coverage detected