From f013a881637988636389a760ca089a4b5e0de91b Mon Sep 17 00:00:00 2001 From: Cory Rivera Date: Mon, 7 Mar 2022 17:11:05 -0800 Subject: [PATCH] Only update active cell if the cell isn't currently in edit mode. (#18672) --- .../contrib/notebook/browser/cellViews/textCell.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sql/workbench/contrib/notebook/browser/cellViews/textCell.component.ts b/src/sql/workbench/contrib/notebook/browser/cellViews/textCell.component.ts index 7dfb7ce7b9..9d73502445 100644 --- a/src/sql/workbench/contrib/notebook/browser/cellViews/textCell.component.ts +++ b/src/sql/workbench/contrib/notebook/browser/cellViews/textCell.component.ts @@ -547,8 +547,8 @@ export class TextCellComponent extends CellView implements OnInit, OnChanges { private enableActiveCellEditOnDoubleClick() { if (!this.isEditMode && this.doubleClickEditEnabled) { this.toggleEditMode(true); + this._model.updateActiveCell(this.cellModel, true); } - this._model.updateActiveCell(this.cellModel, true); } }