Fix focus issue when opening notebooks (#3711)

This commit is contained in:
Chris LaFreniere
2019-01-11 11:37:49 -08:00
committed by GitHub
parent d0acb51fd7
commit 17ed57836f

View File

@@ -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);