diff --git a/src/sql/workbench/services/notebook/browser/models/cell.ts b/src/sql/workbench/services/notebook/browser/models/cell.ts index fbff21764b..de130a4ab6 100644 --- a/src/sql/workbench/services/notebook/browser/models/cell.ts +++ b/src/sql/workbench/services/notebook/browser/models/cell.ts @@ -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 {