* 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
()
| 3582 | * they are now (#2977). The caller re-opens the imports the old maps resolved. |
| 3583 | */ |
| 3584 | resetModuleConfig(): void { |
| 3585 | this.projectAliases = undefined; |
| 3586 | this.dirAliases.clear(); |
| 3587 | this.goModuleByDir.clear(); |
| 3588 | this.goPackageDirs.clear(); |
| 3589 | this.cargoCrates = undefined; |
| 3590 | this.compileDbIncludeDirs = undefined; |
| 3591 | this.moduleConfigFiles.clear(); |
| 3592 | this.clearCaches(); |
| 3593 | // Its manifests stay in the snapshot, whatever this sync resolves. |
| 3594 | this.readCargoCrates(); |
| 3595 | } |
| 3596 | |
| 3597 | /** The fingerprint of the workspace map this resolver resolves by (see `workspaceFingerprint`). */ |
| 3598 | getWorkspaceFingerprint(): string { |
no test coverage detected