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

Method resetModuleConfig

src/resolution/index.ts:3512–3523  ·  view source on GitHub ↗

* Forget the tsconfig / jsconfig alias maps, the go.mod modules, the Cargo * crates and the compile database's directories this resolver read, and * every memo resolved through them, so the next reference reads the files as * they are now (#2977). The caller re-opens the imports the old map

()

Source from the content-addressed store, hash-verified

3510 * they are now (#2977). The caller re-opens the imports the old maps resolved.
3511 */
3512 resetModuleConfig(): void {
3513 this.projectAliases = undefined;
3514 this.dirAliases.clear();
3515 this.goModuleByDir.clear();
3516 this.goPackageDirs.clear();
3517 this.cargoCrates = undefined;
3518 this.compileDbIncludeDirs = undefined;
3519 this.moduleConfigFiles.clear();
3520 this.clearCaches();
3521 // Its manifests stay in the snapshot, whatever this sync resolves.
3522 this.readCargoCrates();
3523 }
3524
3525 /** The fingerprint of the workspace map this resolver resolves by (see `workspaceFingerprint`). */
3526 getWorkspaceFingerprint(): string {

Callers 1

syncMethod · 0.80

Calls 3

clearCachesMethod · 0.95
readCargoCratesMethod · 0.95
clearMethod · 0.45

Tested by

no test coverage detected