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

keep error handler around, #57695

上级 199e2dba
......@@ -93,7 +93,7 @@ class CodeLensContentWidget implements editorBrowser.IContentWidget {
let command = this._commands[element.id];
if (command) {
editor.focus();
commandService.executeCommand(command.id, ...command.arguments).done(undefined, err => {
commandService.executeCommand(command.id, ...command.arguments).then(undefined, err => {
notificationService.error(err);
});
}
......
......@@ -167,7 +167,7 @@ export class FoldingController implements IEditorContribution {
if (foldingModel) {
foldingModel.applyMemento(state.collapsedRegions);
}
}).done(undefined, onUnexpectedError);
}).then(undefined, onUnexpectedError);
}
}
......@@ -313,7 +313,7 @@ export class FoldingController implements IEditorContribution {
}
}
}
}).done(undefined, onUnexpectedError);
}).then(undefined, onUnexpectedError);
}
......@@ -408,7 +408,7 @@ export class FoldingController implements IEditorContribution {
}
}
}
}).done(undefined, onUnexpectedError);
}).then(undefined, onUnexpectedError);
}
public reveal(position: IPosition): void {
......
......@@ -159,7 +159,7 @@ class GotoDefinitionWithMouseEditorContribution implements editorCommon.IEditorC
ref.dispose();
});
}
}).done(undefined, onUnexpectedError);
}).then(undefined, onUnexpectedError);
}
private getPreviewValue(textEditorModel: ITextModel, startLineNumber: number) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册