()
| 2263 | } |
| 2264 | |
| 2265 | async undo(): Promise<void> { |
| 2266 | if (this.#index === 0) { |
| 2267 | return await Promise.resolve(); |
| 2268 | } |
| 2269 | --this.#index; |
| 2270 | this.#lastModelWithMinorChange = null; |
| 2271 | await this.#stack[this.#index].getAgent().invoke_undo(); |
| 2272 | } |
| 2273 | |
| 2274 | async redo(): Promise<void> { |
| 2275 | if (this.#index >= this.#stack.length) { |
no test coverage detected