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

Function clearPackageContext

app/composables/useCommandPalette.ts:108–113  ·  view source on GitHub ↗
(scopeId?: string)

Source from the content-addressed store, hash-verified

106 }
107
108 function clearPackageContext(scopeId?: string) {
109 if (scopeId && packageContextScopeId.value !== scopeId) return
110
111 packageContext.value = null
112 packageContextScopeId.value = null
113 }
114
115 function setContextCommands(commands: CommandPaletteContextCommand[], scopeId: string) {
116 const nextEntries = contextCommands.value.filter(entry => entry.scopeId !== scopeId)

Callers 2

setupFunction · 0.85

Calls

no outgoing calls

Tested by 1

setupFunction · 0.68