Skip to content

Commit 049665a

Browse files
committed
publish final version 1.47
1 parent 3b31c58 commit 049665a

File tree

8 files changed

+68
-19
lines changed

8 files changed

+68
-19
lines changed

adapter/package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

adapter/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "vscode-debugadapter",
33
"description": "Debug adapter implementation for node",
4-
"version": "1.46.0",
4+
"version": "1.47.0",
55
"author": "Microsoft Corporation",
66
"license": "MIT",
77
"repository": {
@@ -19,7 +19,7 @@
1919
"typings": "./lib/main",
2020
"dependencies": {
2121
"mkdirp": "^0.5.5",
22-
"vscode-debugprotocol": "1.46.0"
22+
"vscode-debugprotocol": "1.47.0"
2323
},
2424
"devDependencies": {
2525
"@types/mkdirp": "^0.5.2",

debugProtocol.json

Lines changed: 34 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -971,7 +971,16 @@
971971
},
972972
"RestartArguments": {
973973
"type": "object",
974-
"description": "Arguments for 'restart' request."
974+
"description": "Arguments for 'restart' request.",
975+
"properties": {
976+
"arguments": {
977+
"oneOf": [
978+
{ "$ref": "#/definitions/LaunchRequestArguments" },
979+
{ "$ref": "#/definitions/AttachRequestArguments" }
980+
],
981+
"description": "The latest version of the 'launch' or 'attach' configuration."
982+
}
983+
}
975984
},
976985
"RestartResponse": {
977986
"allOf": [ { "$ref": "#/definitions/Response" }, {
@@ -1007,6 +1016,10 @@
10071016
"terminateDebuggee": {
10081017
"type": "boolean",
10091018
"description": "Indicates whether the debuggee should be terminated when the debugger is disconnected.\nIf unspecified, the debug adapter is free to do whatever it thinks is best.\nThe attribute is only honored by a debug adapter if the capability 'supportTerminateDebuggee' is true."
1019+
},
1020+
"suspendDebuggee": {
1021+
"type": "boolean",
1022+
"description": "Indicates whether the debuggee should stay suspended when the debugger is disconnected.\nIf unspecified, the debuggee should resume execution.\nThe attribute is only honored by a debug adapter if the capability 'supportSuspendDebuggee' is true."
10101023
}
10111024
}
10121025
},
@@ -1241,7 +1254,7 @@
12411254
"SetExceptionBreakpointsRequest": {
12421255
"allOf": [ { "$ref": "#/definitions/Request" }, {
12431256
"type": "object",
1244-
"description": "The request configures the debuggers response to thrown exceptions.\nIf an exception is configured to break, a 'stopped' event is fired (with reason 'exception').\nClients should only call this request if the capability 'exceptionBreakpointFilters' returns one or more filters.\nIf a filter or filter option is invalid (e.g. due to an invalid 'condition'), the request should fail with an 'ErrorResponse' explaining the problem(s).",
1257+
"description": "The request configures the debuggers response to thrown exceptions.\nIf an exception is configured to break, a 'stopped' event is fired (with reason 'exception').\nClients should only call this request if the capability 'exceptionBreakpointFilters' returns one or more filters.",
12451258
"properties": {
12461259
"command": {
12471260
"type": "string",
@@ -1285,7 +1298,21 @@
12851298
"SetExceptionBreakpointsResponse": {
12861299
"allOf": [ { "$ref": "#/definitions/Response" }, {
12871300
"type": "object",
1288-
"description": "Response to 'setExceptionBreakpoints' request. This is just an acknowledgement, so no body field is required."
1301+
"description": "Response to 'setExceptionBreakpoints' request.\nThe response contains an array of Breakpoint objects with information about each exception breakpoint or filter. The Breakpoint objects are in the same order as the elements of the 'filters', 'filterOptions', 'exceptionOptions' arrays given as arguments. If both 'filters' and 'filterOptions' are given, the returned array must start with 'filters' information first, followed by 'filterOptions' information.\nThe mandatory 'verified' property of a Breakpoint object signals whether the exception breakpoint or filter could be successfully created and whether the optional condition or hit count expressions are valid. In case of an error the 'message' property explains the problem. An optional 'id' property can be used to introduce a unique ID for the exception breakpoint or filter so that it can be updated subsequently by sending breakpoint events.\nFor backward compatibility both the 'breakpoints' array and the enclosing 'body' are optional. If these elements are missing a client will not be able to show problems for individual exception breakpoints or filters.",
1302+
"properties": {
1303+
"body": {
1304+
"type": "object",
1305+
"properties": {
1306+
"breakpoints": {
1307+
"type": "array",
1308+
"items": {
1309+
"$ref": "#/definitions/Breakpoint"
1310+
},
1311+
"description": "Information about the exception breakpoints or filters.\nThe breakpoints returned are in the same order as the elements of the 'filters', 'filterOptions', 'exceptionOptions' arrays in the arguments. If both 'filters' and 'filterOptions' are given, the returned array must start with 'filters' information first, followed by 'filterOptions' information."
1312+
}
1313+
}
1314+
}
1315+
}
12891316
}]
12901317
},
12911318

@@ -2918,6 +2945,10 @@
29182945
"type": "boolean",
29192946
"description": "The debug adapter supports the 'terminateDebuggee' attribute on the 'disconnect' request."
29202947
},
2948+
"supportSuspendDebuggee": {
2949+
"type": "boolean",
2950+
"description": "The debug adapter supports the 'suspendDebuggee' attribute on the 'disconnect' request."
2951+
},
29212952
"supportsDelayedStackTraceLoading": {
29222953
"type": "boolean",
29232954
"description": "The debug adapter supports the delayed loading of parts of the stack, which requires that both the 'startFrame' and 'levels' arguments and an optional 'totalFrames' result of the 'StackTrace' request are supported."

protocol/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

protocol/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "vscode-debugprotocol",
33
"description": "Npm module with declarations for the Visual Studio Code debug protocol",
4-
"version": "1.46.0",
4+
"version": "1.47.0",
55
"author": "Microsoft Corporation",
66
"license": "MIT",
77
"repository": {

protocol/src/debugProtocol.ts

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -558,6 +558,8 @@ export module DebugProtocol {
558558

559559
/** Arguments for 'restart' request. */
560560
export interface RestartArguments {
561+
/** The latest version of the 'launch' or 'attach' configuration. */
562+
arguments?: LaunchRequestArguments | AttachRequestArguments;
561563
}
562564

563565
/** Response to 'restart' request. This is just an acknowledgement, so no body field is required. */
@@ -585,6 +587,11 @@ export module DebugProtocol {
585587
The attribute is only honored by a debug adapter if the capability 'supportTerminateDebuggee' is true.
586588
*/
587589
terminateDebuggee?: boolean;
590+
/** Indicates whether the debuggee should stay suspended when the debugger is disconnected.
591+
If unspecified, the debuggee should resume execution.
592+
The attribute is only honored by a debug adapter if the capability 'supportSuspendDebuggee' is true.
593+
*/
594+
suspendDebuggee?: boolean;
588595
}
589596

590597
/** Response to 'disconnect' request. This is just an acknowledgement, so no body field is required. */
@@ -711,7 +718,6 @@ export module DebugProtocol {
711718
The request configures the debuggers response to thrown exceptions.
712719
If an exception is configured to break, a 'stopped' event is fired (with reason 'exception').
713720
Clients should only call this request if the capability 'exceptionBreakpointFilters' returns one or more filters.
714-
If a filter or filter option is invalid (e.g. due to an invalid 'condition'), the request should fail with an 'ErrorResponse' explaining the problem(s).
715721
*/
716722
export interface SetExceptionBreakpointsRequest extends Request {
717723
// command: 'setExceptionBreakpoints';
@@ -730,8 +736,18 @@ export module DebugProtocol {
730736
exceptionOptions?: ExceptionOptions[];
731737
}
732738

733-
/** Response to 'setExceptionBreakpoints' request. This is just an acknowledgement, so no body field is required. */
739+
/** Response to 'setExceptionBreakpoints' request.
740+
The response contains an array of Breakpoint objects with information about each exception breakpoint or filter. The Breakpoint objects are in the same order as the elements of the 'filters', 'filterOptions', 'exceptionOptions' arrays given as arguments. If both 'filters' and 'filterOptions' are given, the returned array must start with 'filters' information first, followed by 'filterOptions' information.
741+
The mandatory 'verified' property of a Breakpoint object signals whether the exception breakpoint or filter could be successfully created and whether the optional condition or hit count expressions are valid. In case of an error the 'message' property explains the problem. An optional 'id' property can be used to introduce a unique ID for the exception breakpoint or filter so that it can be updated subsequently by sending breakpoint events.
742+
For backward compatibility both the 'breakpoints' array and the enclosing 'body' are optional. If these elements are missing a client will not be able to show problems for individual exception breakpoints or filters.
743+
*/
734744
export interface SetExceptionBreakpointsResponse extends Response {
745+
body?: {
746+
/** Information about the exception breakpoints or filters.
747+
The breakpoints returned are in the same order as the elements of the 'filters', 'filterOptions', 'exceptionOptions' arrays in the arguments. If both 'filters' and 'filterOptions' are given, the returned array must start with 'filters' information first, followed by 'filterOptions' information.
748+
*/
749+
breakpoints?: Breakpoint[];
750+
};
735751
}
736752

737753
/** DataBreakpointInfo request; value of command field is 'dataBreakpointInfo'.
@@ -1599,6 +1615,8 @@ export module DebugProtocol {
15991615
supportsExceptionInfoRequest?: boolean;
16001616
/** The debug adapter supports the 'terminateDebuggee' attribute on the 'disconnect' request. */
16011617
supportTerminateDebuggee?: boolean;
1618+
/** The debug adapter supports the 'suspendDebuggee' attribute on the 'disconnect' request. */
1619+
supportSuspendDebuggee?: boolean;
16021620
/** The debug adapter supports the delayed loading of parts of the stack, which requires that both the 'startFrame' and 'levels' arguments and an optional 'totalFrames' result of the 'StackTrace' request are supported. */
16031621
supportsDelayedStackTraceLoading?: boolean;
16041622
/** The debug adapter supports the 'loadedSources' request. */

testSupport/package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

testSupport/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "vscode-debugadapter-testsupport",
33
"description": "Npm module with mocha test support for Visual Studio Code debug adapters",
4-
"version": "1.46.0",
4+
"version": "1.47.0",
55
"author": "Microsoft Corporation",
66
"license": "MIT",
77
"repository": {
@@ -14,7 +14,7 @@
1414
"main": "./lib/main.js",
1515
"typings": "./lib/main",
1616
"dependencies": {
17-
"vscode-debugprotocol": "^1.46.0"
17+
"vscode-debugprotocol": "^1.47.0"
1818
},
1919
"devDependencies": {
2020
"@types/node": "8.9.3",

0 commit comments

Comments
 (0)