The same, only when the snapshot differs from the stored one: a config changed, or resolution read one the index had not recorded.
()
| 1039 | |
| 1040 | /** The same, only when the snapshot differs from the stored one: a config changed, or resolution read one the index had not recorded. */ |
| 1041 | private stampModuleConfigSnapshotIfMoved(): void { |
| 1042 | try { |
| 1043 | const stored = this.queries.getMetadata(MODULE_CONFIG_METADATA_KEY); |
| 1044 | const now = JSON.stringify(this.resolver.getModuleConfigSnapshot(stored)); |
| 1045 | if (now !== stored) this.queries.setMetadata(MODULE_CONFIG_METADATA_KEY, now); |
| 1046 | } catch { /* metadata is advisory */ } |
| 1047 | } |
| 1048 | |
| 1049 | /** Record the workspace-package digest a later sync compares against (see sync). */ |
| 1050 | private stampWorkspaceFingerprint(fingerprint = this.resolver.getWorkspaceFingerprint()): void { |
no test coverage detected