MCPcopy Index your code
hub / github.com/PatrickSys/codebase-context / setActiveProject

Function setActiveProject

src/index.ts:425–429  ·  view source on GitHub ↗
(rootPath: string)

Source from the content-addressed store, hash-verified

423}
424
425function setActiveProject(rootPath: string): void {
426 const resolvedRootPath = path.resolve(rootPath);
427 activeProjectKey = normalizeRootKey(resolvedRootPath);
428 rememberProjectPath(resolvedRootPath);
429}
430
431function syncKnownRoots(rootEntries: Array<{ rootPath: string; label?: string }>): void {
432 const nextRoots = new Map<string, { rootPath: string; label?: string }>();

Callers 6

registerHandlersFunction · 0.85
resolveProjectForToolFunction · 0.85
mainFunction · 0.85
startHttpFunction · 0.85

Calls 2

normalizeRootKeyFunction · 0.85
rememberProjectPathFunction · 0.85

Tested by

no test coverage detected