提交 8c2de5ef 编写于 作者: M Matt Bierner

Fix monaco build errors

上级 612901a9
......@@ -210,11 +210,11 @@ export class ColorDetector extends Disposable implements IEditorContribution {
});
}
for (const subType of this._decorationsTypes) {
this._decorationsTypes.forEach(subType => {
if (!newDecorationsTypes[subType]) {
this._codeEditorService.removeDecorationType(subType);
}
}
});
this._colorDecoratorIds = this._editor.deltaDecorations(this._colorDecoratorIds, decorations);
}
......@@ -223,9 +223,9 @@ export class ColorDetector extends Disposable implements IEditorContribution {
this._decorationsIds = this._editor.deltaDecorations(this._decorationsIds, []);
this._colorDecoratorIds = this._editor.deltaDecorations(this._colorDecoratorIds, []);
for (const subType of this._decorationsTypes) {
this._decorationsTypes.forEach(subType => {
this._codeEditorService.removeDecorationType(subType);
}
});
}
getColorData(position: Position): IColorData | null {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册