From 17ed57836f9f757be71162faa221209dac64ad0b Mon Sep 17 00:00:00 2001 From: Chris LaFreniere <40371649+chlafreniere@users.noreply.github.com> Date: Fri, 11 Jan 2019 11:37:49 -0800 Subject: [PATCH] Fix focus issue when opening notebooks (#3711) --- src/sql/parts/notebook/cellViews/code.component.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/sql/parts/notebook/cellViews/code.component.ts b/src/sql/parts/notebook/cellViews/code.component.ts index 3451b8b4c5..33f9d0937f 100644 --- a/src/sql/parts/notebook/cellViews/code.component.ts +++ b/src/sql/parts/notebook/cellViews/code.component.ts @@ -128,7 +128,6 @@ export class CodeComponent extends AngularDisposable implements OnInit, OnChange let uri = this.createUri(); this._editorInput = instantiationService.createInstance(UntitledEditorInput, uri, false, this.cellModel.language, '', ''); this._editor.setInput(this._editorInput, undefined); - this._editor.focus(); this._editorInput.resolve().then(model => { this._editorModel = model.textEditorModel; this._modelService.updateModel(this._editorModel, this.cellModel.source);