Only update hover execution state if cell is not active. (#19073)

This commit is contained in:
Cory Rivera
2022-04-14 10:19:58 -07:00
committed by GitHub
parent 02064efcaa
commit 8bd5ea5c84

View File

@@ -287,7 +287,10 @@ export class CellModel extends Disposable implements ICellModel {
public set hover(value: boolean) {
this._hover = value;
this.fireExecutionStateChanged();
// The Run button is always visible while the cell is active, so we only need to emit this event for inactive cells
if (!this.active) {
this.fireExecutionStateChanged();
}
}
public get executionCount(): number | undefined {