提交 8333cf3f 编写于 作者: I isidor

debug: fix restart frame action

上级 2416f60c
......@@ -86,7 +86,7 @@ export interface ISession {
disconnect(restart?: boolean, force?: boolean): TPromise<DebugProtocol.DisconnectResponse>;
custom(request: string, args: any): TPromise<DebugProtocol.Response>;
onDidEvent: Event<DebugProtocol.Event>;
restartFrame(args: DebugProtocol.RestartFrameArguments): TPromise<DebugProtocol.RestartFrameResponse>;
restartFrame(args: DebugProtocol.RestartFrameArguments, threadId: number): TPromise<DebugProtocol.RestartFrameResponse>;
next(args: DebugProtocol.NextArguments): TPromise<DebugProtocol.NextResponse>;
stepIn(args: DebugProtocol.StepInArguments): TPromise<DebugProtocol.StepInResponse>;
......
......@@ -380,7 +380,7 @@ export class StackFrame implements IStackFrame {
}
public restart(): TPromise<any> {
return this.thread.process.session.restartFrame({ frameId: this.frameId });
return this.thread.process.session.restartFrame({ frameId: this.frameId }, this.thread.threadId);
}
public toString(): string {
......
......@@ -274,8 +274,11 @@ export class RawDebugSession extends v8.V8Protocol implements debug.ISession {
return this.send('setVariable', args);
}
public restartFrame(args: DebugProtocol.RestartFrameArguments): TPromise<DebugProtocol.RestartFrameResponse> {
return this.send('restartFrame', args);
public restartFrame(args: DebugProtocol.RestartFrameArguments, threadId: number): TPromise<DebugProtocol.RestartFrameResponse> {
return this.send('restartFrame', args).then(response => {
this.fireFakeContinued(threadId);
return response;
});;
}
public completions(args: DebugProtocol.CompletionsArguments): TPromise<DebugProtocol.CompletionsResponse> {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册