Skip to content

Commit

Permalink
Update simulation view on table initialize.
Browse files Browse the repository at this point in the history
  • Loading branch information
soerendomroes committed Oct 17, 2023
1 parent 7acccff commit a9357a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions keith-vscode/src/simulation/simulation-table-data-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down Expand Up @@ -651,7 +651,6 @@ export class SimulationTableDataProvider implements vscode.WebviewViewProvider {
async startOrPauseSimulation(): Promise<void> {
this.play = !this.play
vscode.commands.executeCommand('setContext', 'keith.vscode:play', this.play)
// this.update()
if (this.play) {
await this.waitForNextStep()
}
Expand Down Expand Up @@ -821,6 +820,7 @@ export class SimulationTableDataProvider implements vscode.WebviewViewProvider {
)
}
})
this.update()
}

update(): void {
Expand Down

0 comments on commit a9357a0

Please sign in to comment.