MCPcopy Create free account
hub / github.com/massCodeIO/massCode / getRecentResult

Function getRecentResult

src/renderer/composables/useCommandPalette.ts:617–626  ·  view source on GitHub ↗
(entry: CommandPaletteRecentEntry)

Source from the content-addressed store, hash-verified

615})
616
617function getRecentResult(entry: CommandPaletteRecentEntry) {
618 return {
619 id: `recent:${entry.id}`,
620 type: 'recent',
621 title: entry.title,
622 subtitle: entry.subtitle,
623 icon: getSpaceIcon(entry.spaceId),
624 recent: entry,
625 } satisfies CommandPaletteResult
626}
627
628const recentResults = computed<CommandPaletteResult[]>(() =>
629 recentEntries.value.slice(0, ROOT_RECENT_LIMIT).map(getRecentResult),

Callers

nothing calls this directly

Calls 1

getSpaceIconFunction · 0.85

Tested by

no test coverage detected