Skip to content

Commit

Permalink
add support for gotoTargets; see #28
Browse files Browse the repository at this point in the history
  • Loading branch information
weinand committed Jul 22, 2016
1 parent 4ea6292 commit 9b14f5b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
4 changes: 2 additions & 2 deletions adapter/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "vscode-debugadapter",
"description": "Debug adapter implementation for node",
"version": "1.11.0-pre.7",
"version": "1.11.0-pre.10",
"author": "Microsoft Corporation",
"license": "MIT",
"repository": {
Expand All @@ -14,7 +14,7 @@
"main": "./lib/main.js",
"typings": "./lib/main",
"dependencies": {
"vscode-debugprotocol": "^1.11.0-pre.9"
"vscode-debugprotocol": "^1.11.0-pre.10"
},
"devDependencies": {
"typescript": "^1.8.5"
Expand Down
14 changes: 14 additions & 0 deletions adapter/src/debugSession.ts
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,9 @@ export class DebugSession extends ProtocolServer {
} else if (request.command === 'restartFrame') {
this.restartFrameRequest(<DebugProtocol.RestartFrameResponse> response, request.arguments);

} else if (request.command === 'goto') {
this.gotoRequest(<DebugProtocol.GotoResponse> response, request.arguments);

} else if (request.command === 'pause') {
this.pauseRequest(<DebugProtocol.PauseResponse> response, request.arguments);

Expand Down Expand Up @@ -464,6 +467,9 @@ export class DebugSession extends ProtocolServer {
} else if (request.command === 'stepInTargets') {
this.stepInTargetsRequest(<DebugProtocol.StepInTargetsResponse> response, request.arguments);

} else if (request.command === 'gotoTargets') {
this.gotoTargetsRequest(<DebugProtocol.GotoTargetsResponse> response, request.arguments);

} else if (request.command === 'completions') {
this.completionsRequest(<DebugProtocol.CompletionsResponse> response, request.arguments);

Expand Down Expand Up @@ -560,6 +566,10 @@ export class DebugSession extends ProtocolServer {
this.sendResponse(response);
}

protected gotoRequest(response: DebugProtocol.GotoResponse, args: DebugProtocol.GotoArguments) : void {
this.sendResponse(response);
}

protected pauseRequest(response: DebugProtocol.PauseResponse, args: DebugProtocol.PauseArguments) : void {
this.sendResponse(response);
}
Expand Down Expand Up @@ -596,6 +606,10 @@ export class DebugSession extends ProtocolServer {
this.sendResponse(response);
}

protected gotoTargetsRequest(response: DebugProtocol.GotoTargetsResponse, args: DebugProtocol.GotoTargetsArguments): void {
this.sendResponse(response);
}

protected completionsRequest(response: DebugProtocol.CompletionsResponse, args: DebugProtocol.CompletionsArguments): void {
this.sendResponse(response);
}
Expand Down

0 comments on commit 9b14f5b

Please sign in to comment.