提交 a09ee365 编写于 作者: A Alex Dima

Delete objects from decorations map (#7609)

上级 feb6bc98
...@@ -708,6 +708,12 @@ export abstract class CommonCodeEditor extends EventEmitter implements IActionPr ...@@ -708,6 +708,12 @@ export abstract class CommonCodeEditor extends EventEmitter implements IActionPr
if (oldDecorationsIds) { if (oldDecorationsIds) {
this.deltaDecorations(oldDecorationsIds, []); this.deltaDecorations(oldDecorationsIds, []);
} }
if (this._decorationTypeKeysToIds.hasOwnProperty(decorationTypeKey)) {
delete this._decorationTypeKeysToIds[decorationTypeKey];
}
if (this._decorationTypeSubtypes.hasOwnProperty(decorationTypeKey)) {
delete this._decorationTypeSubtypes[decorationTypeKey];
}
} }
public addTypingListener(character:string, callback: () => void): IDisposable { public addTypingListener(character:string, callback: () => void): IDisposable {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册