提交 a6927d60 编写于 作者: C Christof Marti

Reduce logging (fixes #30578)

上级 4f85ae3e
......@@ -167,7 +167,7 @@ export class MainThreadEditors extends MainThreadEditorsShape {
$trySetDecorations(id: string, key: string, ranges: IDecorationOptions[]): TPromise<any> {
if (!this._documentsAndEditors.getEditor(id)) {
return TPromise.wrapError(new Error('TextEditor disposed'));
return TPromise.as(null);
}
this._documentsAndEditors.getEditor(id).setDecorations(key, ranges);
return TPromise.as(null);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册