提交 eef79103 编写于 作者: J Johannes Rieken

always use editor to add/remove decorations, #17346

上级 e714a6c5
......@@ -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[] = [];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册