Skip to content

Commit ab7e038

Browse files
committed
upgrade to DAP 1.51.0
1 parent 0d7720d commit ab7e038

File tree

8 files changed

+108
-52
lines changed

8 files changed

+108
-52
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.50.0",
4+
"version": "1.51.0-pre.0",
55
"author": "Microsoft Corporation",
66
"license": "MIT",
77
"repository": {
@@ -19,7 +19,7 @@
1919
"typings": "./lib/main",
2020
"dependencies": {
2121
"mkdirp": "^1.0.4",
22-
"vscode-debugprotocol": "1.50.1"
22+
"vscode-debugprotocol": "1.51.0-pre.0"
2323
},
2424
"devDependencies": {
2525
"@types/mkdirp": "^1.0.2",

debugProtocol.json

Lines changed: 52 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -348,8 +348,15 @@
348348
"properties": {
349349
"category": {
350350
"type": "string",
351-
"description": "The output category. If not specified, 'console' is assumed.",
352-
"_enum": [ "console", "stdout", "stderr", "telemetry" ]
351+
"description": "The output category. If not specified or if the category is not understand by the client, 'console' is assumed.",
352+
"_enum": [ "console", "important", "stdout", "stderr", "telemetry" ],
353+
"enumDescriptions": [
354+
"Show the output in the client's default message UI, e.g. a 'debug console'. This category should only be used for informational output from the debugger (as opposed to the debuggee).",
355+
"A hint for the client to show the ouput in the client's UI for important and highly visible information, e.g. as a popup notification. This category should only be used for important messages from the debugger (as opposed to the debuggee). Since this category value is a hint, clients might ignore the hint and assume the 'console' category.",
356+
"Show the output as normal program output from the debuggee.",
357+
"Show the output as error program output from the debuggee.",
358+
"Send the output to telemetry instead of showing it to the user."
359+
]
353360
},
354361
"output": {
355362
"type": "string",
@@ -1378,7 +1385,7 @@
13781385
},
13791386
"name": {
13801387
"type": "string",
1381-
"description": "The name of the Variable's child to obtain data breakpoint information for.\nIf variablesReference isnt provided, this can be an expression."
1388+
"description": "The name of the Variable's child to obtain data breakpoint information for.\nIf variablesReference isn't provided, this can be an expression."
13821389
}
13831390
},
13841391
"required": [ "name" ]
@@ -1531,7 +1538,7 @@
15311538
"ContinueRequest": {
15321539
"allOf": [ { "$ref": "#/definitions/Request" }, {
15331540
"type": "object",
1534-
"description": "The request starts the debuggee to run again.",
1541+
"description": "The request resumes execution of all threads. If the debug adapter supports single thread execution (see capability 'supportsSingleThreadExecutionRequests') setting the 'singleThread' argument to true resumes only the specified thread. If not all threads were resumed, the 'allThreadsContinued' attribute of the response must be set to false.",
15351542
"properties": {
15361543
"command": {
15371544
"type": "string",
@@ -1550,7 +1557,11 @@
15501557
"properties": {
15511558
"threadId": {
15521559
"type": "integer",
1553-
"description": "Continue execution for the specified thread (if possible).\nIf the backend cannot continue on a single thread but will continue on all threads, it should set the 'allThreadsContinued' attribute in the response to true."
1560+
"description": "Specifies the active thread. If the debug adapter supports single thread execution (see 'supportsSingleThreadExecutionRequests') and the optional argument 'singleThread' is true, only the thread with this ID is resumed."
1561+
},
1562+
"singleThread": {
1563+
"type": "boolean",
1564+
"description": "If this optional flag is true, execution is resumed only for the thread with given 'threadId'."
15541565
}
15551566
},
15561567
"required": [ "threadId" ]
@@ -1565,7 +1576,7 @@
15651576
"properties": {
15661577
"allThreadsContinued": {
15671578
"type": "boolean",
1568-
"description": "If true, the 'continue' request has ignored the specified thread and continued all threads instead.\nIf this attribute is missing a value of 'true' is assumed for backward compatibility."
1579+
"description": "The value true (or a missing property) signals to the client that all threads have been resumed. The value false must be returned if not all threads were resumed."
15691580
}
15701581
}
15711582
}
@@ -1577,7 +1588,7 @@
15771588
"NextRequest": {
15781589
"allOf": [ { "$ref": "#/definitions/Request" }, {
15791590
"type": "object",
1580-
"description": "The request starts the debuggee to run again for one step.\nThe debug adapter first sends the response and then a 'stopped' event (with reason 'step') after the step has completed.",
1591+
"description": "The request executes one step (in the given granularity) for the specified thread and allows all other threads to run freely by resuming them.\nIf the debug adapter supports single thread execution (see capability 'supportsSingleThreadExecutionRequests') setting the 'singleThread' argument to true prevents other suspended threads from resuming.\nThe debug adapter first sends the response and then a 'stopped' event (with reason 'step') after the step has completed.",
15811592
"properties": {
15821593
"command": {
15831594
"type": "string",
@@ -1596,7 +1607,11 @@
15961607
"properties": {
15971608
"threadId": {
15981609
"type": "integer",
1599-
"description": "Execute 'next' for this thread."
1610+
"description": "Specifies the thread for which to resume execution for one step (of the given granularity)."
1611+
},
1612+
"singleThread": {
1613+
"type": "boolean",
1614+
"description": "If this optional flag is true, all other suspended threads are not resumed."
16001615
},
16011616
"granularity": {
16021617
"$ref": "#/definitions/SteppingGranularity",
@@ -1615,7 +1630,7 @@
16151630
"StepInRequest": {
16161631
"allOf": [ { "$ref": "#/definitions/Request" }, {
16171632
"type": "object",
1618-
"description": "The request starts the debuggee to step into a function/method if possible.\nIf it cannot step into a target, 'stepIn' behaves like 'next'.\nThe debug adapter first sends the response and then a 'stopped' event (with reason 'step') after the step has completed.\nIf there are multiple function/method calls (or other targets) on the source line,\nthe optional argument 'targetId' can be used to control into which target the 'stepIn' should occur.\nThe list of possible targets for a given source line can be retrieved via the 'stepInTargets' request.",
1633+
"description": "The request resumes the given thread to step into a function/method and allows all other threads to run freely by resuming them.\nIf the debug adapter supports single thread execution (see capability 'supportsSingleThreadExecutionRequests') setting the 'singleThread' argument to true prevents other suspended threads from resuming.\nIf the request cannot step into a target, 'stepIn' behaves like the 'next' request.\nThe debug adapter first sends the response and then a 'stopped' event (with reason 'step') after the step has completed.\nIf there are multiple function/method calls (or other targets) on the source line,\nthe optional argument 'targetId' can be used to control into which target the 'stepIn' should occur.\nThe list of possible targets for a given source line can be retrieved via the 'stepInTargets' request.",
16191634
"properties": {
16201635
"command": {
16211636
"type": "string",
@@ -1634,7 +1649,11 @@
16341649
"properties": {
16351650
"threadId": {
16361651
"type": "integer",
1637-
"description": "Execute 'stepIn' for this thread."
1652+
"description": "Specifies the thread for which to resume execution for one step-into (of the given granularity)."
1653+
},
1654+
"singleThread": {
1655+
"type": "boolean",
1656+
"description": "If this optional flag is true, all other suspended threads are not resumed."
16381657
},
16391658
"targetId": {
16401659
"type": "integer",
@@ -1657,7 +1676,7 @@
16571676
"StepOutRequest": {
16581677
"allOf": [ { "$ref": "#/definitions/Request" }, {
16591678
"type": "object",
1660-
"description": "The request starts the debuggee to run again for one step.\nThe debug adapter first sends the response and then a 'stopped' event (with reason 'step') after the step has completed.",
1679+
"description": "The request resumes the given thread to step out (return) from a function/method and allows all other threads to run freely by resuming them.\nIf the debug adapter supports single thread execution (see capability 'supportsSingleThreadExecutionRequests') setting the 'singleThread' argument to true prevents other suspended threads from resuming.\nThe debug adapter first sends the response and then a 'stopped' event (with reason 'step') after the step has completed.",
16611680
"properties": {
16621681
"command": {
16631682
"type": "string",
@@ -1676,7 +1695,11 @@
16761695
"properties": {
16771696
"threadId": {
16781697
"type": "integer",
1679-
"description": "Execute 'stepOut' for this thread."
1698+
"description": "Specifies the thread for which to resume execution for one step-out (of the given granularity)."
1699+
},
1700+
"singleThread": {
1701+
"type": "boolean",
1702+
"description": "If this optional flag is true, all other suspended threads are not resumed."
16801703
},
16811704
"granularity": {
16821705
"$ref": "#/definitions/SteppingGranularity",
@@ -1695,7 +1718,7 @@
16951718
"StepBackRequest": {
16961719
"allOf": [ { "$ref": "#/definitions/Request" }, {
16971720
"type": "object",
1698-
"description": "The request starts the debuggee to run one step backwards.\nThe debug adapter first sends the response and then a 'stopped' event (with reason 'step') after the step has completed.\nClients should only call this request if the capability 'supportsStepBack' is true.",
1721+
"description": "The request executes one backward step (in the given granularity) for the specified thread and allows all other threads to run backward freely by resuming them.\nIf the debug adapter supports single thread execution (see capability 'supportsSingleThreadExecutionRequests') setting the 'singleThread' argument to true prevents other suspended threads from resuming.\nThe debug adapter first sends the response and then a 'stopped' event (with reason 'step') after the step has completed.\nClients should only call this request if the capability 'supportsStepBack' is true.",
16991722
"properties": {
17001723
"command": {
17011724
"type": "string",
@@ -1714,7 +1737,11 @@
17141737
"properties": {
17151738
"threadId": {
17161739
"type": "integer",
1717-
"description": "Execute 'stepBack' for this thread."
1740+
"description": "Specifies the thread for which to resume execution for one step backwards (of the given granularity)."
1741+
},
1742+
"singleThread": {
1743+
"type": "boolean",
1744+
"description": "If this optional flag is true, all other suspended threads are not resumed."
17181745
},
17191746
"granularity": {
17201747
"$ref": "#/definitions/SteppingGranularity",
@@ -1733,7 +1760,7 @@
17331760
"ReverseContinueRequest": {
17341761
"allOf": [ { "$ref": "#/definitions/Request" }, {
17351762
"type": "object",
1736-
"description": "The request starts the debuggee to run backward.\nClients should only call this request if the capability 'supportsStepBack' is true.",
1763+
"description": "The request resumes backward execution of all threads. If the debug adapter supports single thread execution (see capability 'supportsSingleThreadExecutionRequests') setting the 'singleThread' argument to true resumes only the specified thread. If not all threads were resumed, the 'allThreadsContinued' attribute of the response must be set to false.\nClients should only call this request if the capability 'supportsStepBack' is true.",
17371764
"properties": {
17381765
"command": {
17391766
"type": "string",
@@ -1752,8 +1779,13 @@
17521779
"properties": {
17531780
"threadId": {
17541781
"type": "integer",
1755-
"description": "Execute 'reverseContinue' for this thread."
1782+
"description": "Specifies the active thread. If the debug adapter supports single thread execution (see 'supportsSingleThreadExecutionRequests') and the optional argument 'singleThread' is true, only the thread with this ID is resumed."
1783+
},
1784+
"singleThread": {
1785+
"type": "boolean",
1786+
"description": "If this optional flag is true, backward execution is resumed only for the thread with given 'threadId'."
17561787
}
1788+
17571789
},
17581790
"required": [ "threadId" ]
17591791
},
@@ -3109,6 +3141,10 @@
31093141
"supportsExceptionFilterOptions": {
31103142
"type": "boolean",
31113143
"description": "The debug adapter supports 'filterOptions' as an argument on the 'setExceptionBreakpoints' request."
3144+
},
3145+
"supportsSingleThreadExecutionRequests": {
3146+
"type": "boolean",
3147+
"description": "The debug adapter supports the 'singleThread' property on the execution requests ('continue', 'next', 'stepIn', 'stepOut', 'reverseContinue', 'stepBack')."
31123148
}
31133149
}
31143150
},

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

0 commit comments

Comments
 (0)