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 {