diff --git a/packages/debug/src/browser/debug-session.tsx b/packages/debug/src/browser/debug-session.tsx index e9e9bcd5a34c9..050eec8c889fa 100644 --- a/packages/debug/src/browser/debug-session.tsx +++ b/packages/debug/src/browser/debug-session.tsx @@ -693,13 +693,8 @@ export class DebugSession implements CompositeTreeElement { } protected async sendExceptionBreakpoints(): Promise { - 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) { @@ -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 {