mirror of
https://github.com/Microsoft/vscode
synced 2024-10-30 19:48:09 +00:00
parent
169fdac3b9
commit
2920b3f56e
4 changed files with 12 additions and 2 deletions
|
@ -669,6 +669,12 @@ export interface IDebugService {
|
|||
*/
|
||||
removeFunctionBreakpoints(id?: string): TPromise<void>;
|
||||
|
||||
/**
|
||||
* Sends all breakpoints to the passed session.
|
||||
* If session is not passed, sends all breakpoints to each session.
|
||||
*/
|
||||
sendAllBreakpoints(session?: ISession): TPromise<any>;
|
||||
|
||||
/**
|
||||
* Adds a new expression to the repl.
|
||||
*/
|
||||
|
|
|
@ -992,7 +992,7 @@ export class DebugService implements IDebugService {
|
|||
return this.configurationManager;
|
||||
}
|
||||
|
||||
private sendAllBreakpoints(session?: ISession): TPromise<any> {
|
||||
sendAllBreakpoints(session?: ISession): TPromise<any> {
|
||||
return TPromise.join(distinct(this.model.getBreakpoints(), bp => bp.uri.toString()).map(bp => this.sendBreakpoints(bp.uri, false, session)))
|
||||
.then(() => this.sendFunctionBreakpoints(session))
|
||||
// send exception breakpoints at the end since some debug adapters rely on the order
|
||||
|
|
|
@ -268,7 +268,7 @@ export class Session implements ISession {
|
|||
};
|
||||
|
||||
// Send all breakpoints
|
||||
this.debugService.setBreakpointsActivated(true).then(sendConfigurationDone, sendConfigurationDone)
|
||||
this.debugService.sendAllBreakpoints(this).then(sendConfigurationDone, sendConfigurationDone)
|
||||
.done(() => this.fetchThreads(), errors.onUnexpectedError);
|
||||
}));
|
||||
|
||||
|
|
|
@ -39,6 +39,10 @@ export class MockDebugService implements IDebugService {
|
|||
public focusStackFrame(focusedStackFrame: IStackFrame): void {
|
||||
}
|
||||
|
||||
sendAllBreakpoints(session?: ISession): TPromise<any> {
|
||||
return TPromise.as(null);
|
||||
}
|
||||
|
||||
public addBreakpoints(uri: uri, rawBreakpoints: IBreakpointData[]): TPromise<IBreakpoint[]> {
|
||||
return TPromise.as(null);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue