Skip to content

Commit

Permalink
always use editor to add/remove decorations, #17346
Browse files Browse the repository at this point in the history
  • Loading branch information
jrieken committed Dec 28, 2016
1 parent e714a6c commit eef7910
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ class DecorationsManager implements IDisposable {
private _addDecorations(reference: FileReferences): void {
this._callOnModelChange.push(this.editor.getModel().onDidChangeDecorations((event) => this._onDecorationChanged(event)));

this.editor.getModel().changeDecorations((accessor) => {
this.editor.changeDecorations(accessor => {

var newDecorations: editorCommon.IModelDeltaDecoration[] = [];
var newDecorationsActualIndex: number[] = [];

Expand Down

0 comments on commit eef7910

Please sign in to comment.