The same, only when the snapshot differs from the stored one: a config changed, or resolution read one the index had not recorded.
()
| 1024 | |
| 1025 | /** The same, only when the snapshot differs from the stored one: a config changed, or resolution read one the index had not recorded. */ |
| 1026 | private stampModuleConfigSnapshotIfMoved(): void { |
| 1027 | try { |
| 1028 | const stored = this.queries.getMetadata(MODULE_CONFIG_METADATA_KEY); |
| 1029 | const now = JSON.stringify(this.resolver.getModuleConfigSnapshot(stored)); |
| 1030 | if (now !== stored) this.queries.setMetadata(MODULE_CONFIG_METADATA_KEY, now); |
| 1031 | } catch { /* metadata is advisory */ } |
| 1032 | } |
| 1033 | |
| 1034 | /** Record the workspace-package digest a later sync compares against (see sync). */ |
| 1035 | private stampWorkspaceFingerprint(fingerprint = this.resolver.getWorkspaceFingerprint()): void { |
no test coverage detected