Skip to content

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
pisv committed Jun 7, 2023
1 parent 3d710c1 commit 61ca84a
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions packages/debug/src/browser/debug-session.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -693,13 +693,8 @@ export class DebugSession implements CompositeTreeElement {
}

protected async sendExceptionBreakpoints(): Promise<void> {
const args: DebugProtocol.SetExceptionBreakpointsArguments = {
filters: []
};
if (this.capabilities.supportsExceptionFilterOptions) {
args.filterOptions = [];
}
const { filters, filterOptions } = args;
const filters: string[] = [];
const filterOptions: DebugProtocol.ExceptionFilterOptions[] | undefined = this.capabilities.supportsExceptionFilterOptions ? [] : undefined;
for (const breakpoint of this.breakpoints.getExceptionBreakpoints()) {
if (breakpoint.enabled) {
if (filterOptions) {
Expand All @@ -712,7 +707,7 @@ export class DebugSession implements CompositeTreeElement {
}
}
}
await this.sendRequest('setExceptionBreakpoints', args);
await this.sendRequest('setExceptionBreakpoints', { filters, filterOptions });
}

protected async sendFunctionBreakpoints(affectedUri: URI): Promise<void> {
Expand Down

0 comments on commit 61ca84a

Please sign in to comment.