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

Function forgetProjectPath

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

Source from the content-addressed store, hash-verified

302}
303
304function forgetProjectPath(rootPath: string): void {
305 const rootKey = normalizeRootKey(rootPath);
306 projectSourcesByKey.delete(rootKey);
307 projectAccessOrder.delete(rootKey);
308 if (activeProjectKey === rootKey) {
309 activeProjectKey = undefined;
310 }
311}
312
313function formatProjectLabel(rootPath: string): string {
314 const knownRootLabel = getKnownRootLabel(rootPath);

Callers 1

syncKnownRootsFunction · 0.85

Calls 1

normalizeRootKeyFunction · 0.85

Tested by

no test coverage detected