提交 4be43b90 编写于 作者: I isidor

debug: only call `setExceptionBreakpoints` as specified in dap protocol

 fixes #90001
上级 91f5a4b6
......@@ -912,7 +912,13 @@ export class DebugService implements IDebugService {
private sendExceptionBreakpoints(session?: IDebugSession): Promise<void> {
const enabledExceptionBps = this.model.getExceptionBreakpoints().filter(exb => exb.enabled);
return sendToOneOrAllSessions(this.model, session, s => s.sendExceptionBreakpoints(enabledExceptionBps));
return sendToOneOrAllSessions(this.model, session, async s => {
if (s.capabilities.supportsConfigurationDoneRequest && (!s.capabilities.exceptionBreakpointFilters || s.capabilities.exceptionBreakpointFilters.length === 0)) {
// Only call `setExceptionBreakpoints` as specified in dap protocol #90001
return;
}
await s.sendExceptionBreakpoints(enabledExceptionBps);
});
}
private onFileChanges(fileChangesEvent: FileChangesEvent): void {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册