提交 ee06746c 编写于 作者: I isidor

fixes #35345

上级 78cd74b1
...@@ -531,13 +531,12 @@ export class Process implements IProcess { ...@@ -531,13 +531,12 @@ export class Process implements IProcess {
public sources: Map<string, Source>; public sources: Map<string, Source>;
private threads: Map<number, Thread>; private threads: Map<number, Thread>;
private inactive = true; public inactive = true;
constructor(public configuration: IConfig, private _session: ISession & ITreeElement) { constructor(public configuration: IConfig, private _session: ISession & ITreeElement) {
this.threads = new Map<number, Thread>(); this.threads = new Map<number, Thread>();
this.sources = new Map<string, Source>(); this.sources = new Map<string, Source>();
this._session.onDidInitialize(() => this.inactive = false); this._session.onDidInitialize(() => this.inactive = false);
this._session.onDidExitAdapter(() => this.inactive = true);
} }
public get session(): ISession { public get session(): ISession {
......
...@@ -1074,6 +1074,7 @@ export class DebugService implements debug.IDebugService { ...@@ -1074,6 +1074,7 @@ export class DebugService implements debug.IDebugService {
this.model.removeProcess(session.getId()); this.model.removeProcess(session.getId());
if (process && process.state !== debug.ProcessState.INACTIVE) { if (process && process.state !== debug.ProcessState.INACTIVE) {
process.inactive = true;
this._onDidEndProcess.fire(process); this._onDidEndProcess.fire(process);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册