From a9357a0b95df7bbb448055bdb7e7aeee6040e231 Mon Sep 17 00:00:00 2001 From: Soeren Domroes Date: Tue, 17 Oct 2023 18:28:41 +0200 Subject: [PATCH] Update simulation view on table initialize. --- keith-vscode/src/simulation/simulation-table-data-provider.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/keith-vscode/src/simulation/simulation-table-data-provider.ts b/keith-vscode/src/simulation/simulation-table-data-provider.ts index 65b8650..12867fa 100644 --- a/keith-vscode/src/simulation/simulation-table-data-provider.ts +++ b/keith-vscode/src/simulation/simulation-table-data-provider.ts @@ -592,10 +592,10 @@ export class SimulationTableDataProvider implements vscode.WebviewViewProvider { } }) this.controlsEnabled = true - this.initializeTable() this.simulationRunning = true vscode.commands.executeCommand('setContext', 'keith.vscode:simulationRunning', this.simulationRunning) this.simulationStep = 0 + this.initializeTable() // Show simulation view this.update() } @@ -651,7 +651,6 @@ export class SimulationTableDataProvider implements vscode.WebviewViewProvider { async startOrPauseSimulation(): Promise { this.play = !this.play vscode.commands.executeCommand('setContext', 'keith.vscode:play', this.play) - // this.update() if (this.play) { await this.waitForNextStep() } @@ -821,6 +820,7 @@ export class SimulationTableDataProvider implements vscode.WebviewViewProvider { ) } }) + this.update() } update(): void {