MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / diskContext

Method diskContext

src/resolution/index.ts:3402–3414  ·  view source on GitHub ↗

The resolution context, reading build configs from disk rather than the file cache.

()

Source from the content-addressed store, hash-verified

3400
3401 /** The resolution context, reading build configs from disk rather than the file cache. */
3402 private diskContext(): ResolutionContext {
3403 return {
3404 ...this.context,
3405 readFile: (filePath: string) => {
3406 try {
3407 const abs = path.join(this.projectRoot, filePath);
3408 return fs.statSync(abs).isFile() ? fs.readFileSync(abs, 'utf-8') : null;
3409 } catch {
3410 return null;
3411 }
3412 },
3413 };
3414 }
3415
3416 /**
3417 * Get detected frameworks

Callers 3

readCargoCratesMethod · 0.95
getPythonReopenScopeMethod · 0.95

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected