()
| 127 | } |
| 128 | |
| 129 | private async maybeTakePrePhraseSnapshot() { |
| 130 | const phraseStartSignal = this.graph.commandServerApi?.signals?.prePhrase; |
| 131 | |
| 132 | if (phraseStartSignal != null) { |
| 133 | const newSignalVersion = await phraseStartSignal.getVersion(); |
| 134 | |
| 135 | if (newSignalVersion !== this.lastSignalVersion) { |
| 136 | this.graph.debug.log("taking snapshot"); |
| 137 | this.lastSignalVersion = newSignalVersion; |
| 138 | |
| 139 | if (newSignalVersion != null) { |
| 140 | this.takePrePhraseSnapshot(); |
| 141 | } |
| 142 | } |
| 143 | } |
| 144 | } |
| 145 | |
| 146 | private takePrePhraseSnapshot() { |
| 147 | if (this.prePhraseMapSnapshot != null) { |
no test coverage detected