From 8bd5ea5c84f78541fbb625846c3b667ff9840901 Mon Sep 17 00:00:00 2001 From: Cory Rivera Date: Thu, 14 Apr 2022 10:19:58 -0700 Subject: [PATCH] Only update hover execution state if cell is not active. (#19073) --- src/sql/workbench/services/notebook/browser/models/cell.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 {