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

Function initProject

src/index.ts:1600–1613  ·  view source on GitHub ↗
(
  rootPath: string,
  debounceMs: number,
  options: InitProjectOptions
)

Source from the content-addressed store, hash-verified

1598}
1599
1600async function initProject(
1601 rootPath: string,
1602 debounceMs: number,
1603 options: InitProjectOptions
1604): Promise<void> {
1605 rememberProjectPath(rootPath);
1606 const project = getOrCreateProject(rootPath);
1607 await ensureProjectInitialized(project);
1608 touchProject(project.rootPath);
1609
1610 if (options.enableWatcher) {
1611 ensureProjectWatcher(project, debounceMs);
1612 }
1613}
1614
1615function normalizeRuntimeExtensions(extensions?: string[]): string[] | undefined {
1616 if (!extensions?.length) {

Callers 6

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

Calls 5

rememberProjectPathFunction · 0.85
getOrCreateProjectFunction · 0.85
ensureProjectInitializedFunction · 0.85
touchProjectFunction · 0.85
ensureProjectWatcherFunction · 0.85

Tested by

no test coverage detected