Skip to content

Commit 1b9a3e8

Browse files
committed
add 'restart' argument to 'terminate' and 'disconnect' requests
1 parent dbedc53 commit 1b9a3e8

File tree

8 files changed

+30
-16
lines changed

8 files changed

+30
-16
lines changed

Diff for: adapter/package-lock.json

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: adapter/package.json

+2-2
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.31.0",
4+
"version": "1.32.0-pre.0",
55
"author": "Microsoft Corporation",
66
"license": "MIT",
77
"repository": {
@@ -15,7 +15,7 @@
1515
"typings": "./lib/main",
1616
"dependencies": {
1717
"mkdirp": "^0.5.1",
18-
"vscode-debugprotocol": "1.31.0"
18+
"vscode-debugprotocol": "1.32.0-pre.0"
1919
},
2020
"devDependencies": {
2121
"@types/mkdirp": "^0.5.2",

Diff for: debugProtocol.json

+11-1
Original file line numberDiff line numberDiff line change
@@ -784,6 +784,10 @@
784784
"type": "object",
785785
"description": "Arguments for 'disconnect' request.",
786786
"properties": {
787+
"restart": {
788+
"type": "boolean",
789+
"description": "A value of true indicates that this 'disconnect' request is part of a restart sequence."
790+
},
787791
"terminateDebuggee": {
788792
"type": "boolean",
789793
"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.\nA client can only rely on this attribute being properly honored if a debug adapter returns true for the 'supportTerminateDebuggee' capability."
@@ -815,7 +819,13 @@
815819
},
816820
"TerminateArguments": {
817821
"type": "object",
818-
"description": "Arguments for 'terminate' request."
822+
"description": "Arguments for 'terminate' request.",
823+
"properties": {
824+
"restart": {
825+
"type": "boolean",
826+
"description": "A value of true indicates that this 'terminate' request is part of a restart sequence."
827+
}
828+
}
819829
},
820830
"TerminateResponse": {
821831
"allOf": [ { "$ref": "#/definitions/Response" }, {

Diff for: protocol/package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: protocol/package.json

+1-1
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.31.0",
4+
"version": "1.32.0-pre.0",
55
"author": "Microsoft Corporation",
66
"license": "MIT",
77
"repository": {

Diff for: protocol/src/debugProtocol.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,8 @@ export module DebugProtocol {
420420

421421
/** Arguments for 'disconnect' request. */
422422
export interface DisconnectArguments {
423+
/** A value of true indicates that this 'disconnect' request is part of a restart sequence. */
424+
restart?: boolean;
423425
/** Indicates whether the debuggee should be terminated when the debugger is disconnected.
424426
If unspecified, the debug adapter is free to do whatever it thinks is best.
425427
A client can only rely on this attribute being properly honored if a debug adapter returns true for the 'supportTerminateDebuggee' capability.
@@ -432,7 +434,7 @@ export module DebugProtocol {
432434
}
433435

434436
/** Terminate request; value of command field is 'terminate'.
435-
The 'terminate' request is sent from the client to the debug adapter in order to give the debuggee a chance to terminate itself.
437+
The 'terminate' request is sent from the client to the debug adapter in order to give the debuggee a chance for terminating itself.
436438
*/
437439
export interface TerminateRequest extends Request {
438440
// command: 'terminate';
@@ -441,6 +443,8 @@ export module DebugProtocol {
441443

442444
/** Arguments for 'terminate' request. */
443445
export interface TerminateArguments {
446+
/** A value of true indicates that this 'terminate' request is part of a restart sequence. */
447+
restart?: boolean;
444448
}
445449

446450
/** Response to 'terminate' request. This is just an acknowledgement, so no body field is required. */

Diff for: testSupport/package-lock.json

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: testSupport/package.json

+2-2
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.31.0",
4+
"version": "1.32.0-pre.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.31.0"
17+
"vscode-debugprotocol": "1.32.0-pre.0"
1818
},
1919
"devDependencies": {
2020
"@types/node": "7.0.43",

0 commit comments

Comments
 (0)