Record the module-config files the index was resolved by, for a later sync to compare against (see sync).
()
| 1052 | |
| 1053 | /** Record the module-config files the index was resolved by, for a later sync to compare against (see sync). */ |
| 1054 | private stampModuleConfigSnapshot(): void { |
| 1055 | try { |
| 1056 | const stored = this.queries.getMetadata(MODULE_CONFIG_METADATA_KEY); |
| 1057 | this.queries.setMetadata(MODULE_CONFIG_METADATA_KEY, JSON.stringify(this.resolver.getModuleConfigSnapshot(stored, true))); |
| 1058 | } catch { /* metadata is advisory */ } |
| 1059 | } |
| 1060 | |
| 1061 | /** The same, only when the snapshot differs from the stored one: a config changed, or resolution read one the index had not recorded. */ |
| 1062 | private stampModuleConfigSnapshotIfMoved(): void { |
no test coverage detected