Skip to content

Commit

Permalink
first set code editor, then setConfiguration
Browse files Browse the repository at this point in the history
fixes #12879
  • Loading branch information
isidorn committed Oct 7, 2016
1 parent e240ede commit 8dbe5f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vs/workbench/api/node/mainThreadEditorsTracker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,13 @@ export class MainThreadTextEditor {
this._onConfigurationChanged = new Emitter<IResolvedTextEditorConfiguration>();

this._lastSelection = [ new Selection(1,1,1,1) ];
this._setConfiguration(this._readConfiguration(this._model, this._codeEditor));
this._modelListeners = [];
this._modelListeners.push(this._model.onDidChangeOptions((e) => {
this._setConfiguration(this._readConfiguration(this._model, this._codeEditor));
}));

this.setCodeEditor(codeEditor);
this._setConfiguration(this._readConfiguration(this._model, this._codeEditor));
}

public dispose(): void {
Expand Down

0 comments on commit 8dbe5f4

Please sign in to comment.