debug: ignore error when stopping a process (#236009)

ERR Invalid debug adapter: Error: Invalid debug adapter
This commit is contained in:
oltolm
2024-12-13 17:10:50 +00:00
committed by GitHub
parent 5ae6f1e829
commit e7f022a392
@@ -397,7 +397,8 @@ export class MainThreadDebugService implements MainThreadDebugServiceShape, IDeb
}
public $acceptDAExit(handle: number, code: number, signal: string) {
this.getDebugAdapter(handle).fireExit(handle, code, signal);
// don't use getDebugAdapter since an error can be expected on a post-close
this._debugAdapters.get(handle)?.fireExit(handle, code, signal);
}
private getDebugAdapter(handle: number): ExtensionHostDebugAdapter {