提交 307f6063 编写于 作者: I isidor

Do not silently swallow debug errors

fixes #48655
上级 0913b0c9
......@@ -858,6 +858,9 @@ export class DebugService implements debug.IDebugService {
return this.showError(err.message, [debugAnywayAction, this.taskService.configureAction()]);
});
}, err => {
if (err && err.message) {
return this.showError(err.message);
}
if (this.contextService.getWorkbenchState() === WorkbenchState.EMPTY) {
return this.showError(nls.localize('noFolderWorkspaceDebugError', "The active file can not be debugged. Make sure it is saved on disk and that you have a debug extension installed for that file type."));
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册