提交 6c95d55f 编写于 作者: I isidor

fixes #33452

上级 77e635dc
......@@ -118,9 +118,8 @@ export class StartAction extends AbstractDebugAction {
@IWorkspaceContextService private contextService: IWorkspaceContextService
) {
super(id, label, 'debug-action start', debugService, keybindingService);
this.debugService.getConfigurationManager().onDidSelectConfiguration(() => {
this.updateEnablement();
});
this.debugService.getConfigurationManager().onDidSelectConfiguration(() => this.updateEnablement());
this.debugService.getModel().onDidChangeCallStack(() => this.updateEnablement());
}
public run(): TPromise<any> {
......
......@@ -873,6 +873,9 @@ export class DebugService implements debug.IDebugService {
if (!session.disconnected) {
session.disconnect().done(null, errors.onUnexpectedError);
}
if (process) {
this.model.removeProcess(process.getId());
}
// Show the repl if some error got logged there #5870
if (this.model.getReplElements().length > 0) {
this.panelService.openPanel(debug.REPL_ID, false).done(undefined, errors.onUnexpectedError);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册