(context: ResolutionContext)
| 1009 | * touch; see {@link pythonReopenScope}. Built fresh, not from the memo. |
| 1010 | */ |
| 1011 | export function pythonRootFingerprint(context: ResolutionContext): string { |
| 1012 | const index = buildPythonModuleIndex(context); |
| 1013 | if (index.files.size === 0) return ''; |
| 1014 | const hash = crypto.createHash('sha1'); |
| 1015 | hash.update([...index.projectRoots].sort().join('\n')); |
| 1016 | hash.update('\0'); |
| 1017 | hash.update([...index.localRoots].map(([root, reach]) => `${root}\t${reach}`).sort().join('\n')); |
| 1018 | return hash.digest('hex'); |
| 1019 | } |
| 1020 | |
| 1021 | /** |
| 1022 | * What a sync must re-open when Python files were added or removed but the |
no test coverage detected