提交 aaf342d2 编写于 作者: I isidor

debug: do not force fire onDidChangeState on stop session

上级 c002ca67
...@@ -544,7 +544,6 @@ export class DebugService implements IDebugService { ...@@ -544,7 +544,6 @@ export class DebugService implements IDebugService {
restartSession(session: IDebugSession, restartData?: any): TPromise<any> { restartSession(session: IDebugSession, restartData?: any): TPromise<any> {
return this.textFileService.saveAll().then(() => { return this.textFileService.saveAll().then(() => {
const unresolvedConfiguration = session.unresolvedConfiguration; const unresolvedConfiguration = session.unresolvedConfiguration;
...@@ -610,12 +609,7 @@ export class DebugService implements IDebugService { ...@@ -610,12 +609,7 @@ export class DebugService implements IDebugService {
} }
const sessions = this.model.getSessions(); const sessions = this.model.getSessions();
if (sessions.length) { return TPromise.join(sessions.map(s => s.terminate()));
return TPromise.join(sessions.map(s => s.terminate()));
}
this._onDidChangeState.fire(); // TODO@AW why state change?
return undefined;
} }
private substituteVariables(launch: ILaunch | undefined, config: IConfig): TPromise<IConfig> { private substituteVariables(launch: ILaunch | undefined, config: IConfig): TPromise<IConfig> {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册