Skip to content

Commit

Permalink
debug: ignore error when stopping a process (#236009)
Browse files Browse the repository at this point in the history
ERR Invalid debug adapter: Error: Invalid debug adapter
  • Loading branch information
oltolm authored Dec 13, 2024
1 parent 5ae6f1e commit e7f022a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/vs/workbench/api/browser/mainThreadDebugService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit e7f022a

Please sign in to comment.