提交 22606ac7 编写于 作者: J Johannes Rieken

better handling of error case, #8917

上级 037f94b2
......@@ -103,6 +103,7 @@ export class RenameAction extends EditorAction {
if (typeof err === 'string') {
this._messageService.show(Severity.Info, err);
} else {
this._messageService.show(Severity.Error, nls.localize('rename.failed', "Sorry, rename failed with to execute."));
return TPromise.wrapError(err);
}
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册