From 33d441ce258fc870df31463ca1b03bcb8873ad73 Mon Sep 17 00:00:00 2001 From: Eric Snow Date: Fri, 2 Mar 2018 00:39:31 +0000 Subject: [PATCH] Update the DAP schema. --- debugger_protocol/schema/UPSTREAM | 6 ++-- debugger_protocol/schema/debugProtocol.json | 36 +++++++++++++++++++-- 2 files changed, 37 insertions(+), 5 deletions(-) diff --git a/debugger_protocol/schema/UPSTREAM b/debugger_protocol/schema/UPSTREAM index a46fc369..cf5b58fa 100644 --- a/debugger_protocol/schema/UPSTREAM +++ b/debugger_protocol/schema/UPSTREAM @@ -1,4 +1,4 @@ upstream: https://github.com/Microsoft/vscode-debugadapter-node/raw/master/debugProtocol.json -revision: 393919e9ae7e469c40bcd3625bd3c72f5412fb2a -checksum: 24a370d038f7875f4db2631d5238fd17 -downloaded: 2018-01-10 00:47:10 (UTC) +revision: e29c5ea5043add9e87217d260ee370fe7bb794e9 +checksum: 6d8418c78394539b972d428accc3d30a +downloaded: 2018-03-02 00:38:25 (UTC) diff --git a/debugger_protocol/schema/debugProtocol.json b/debugger_protocol/schema/debugProtocol.json index 6cf94354..9354ae64 100644 --- a/debugger_protocol/schema/debugProtocol.json +++ b/debugger_protocol/schema/debugProtocol.json @@ -441,6 +441,30 @@ ] }, + "CapabilitiesEvent": { + "allOf": [ { "$ref": "#/definitions/Event" }, { + "type": "object", + "description": "Event message for 'capabilities' event type.\nThe event indicates that one or more capabilities have changed.\nSince the capabilities are dependent on the frontend and its UI, it might not be possible to change that at random times (or too late).\nConsequently this event has a hint characteristic: a frontend can only be expected to make a 'best effort' in honouring individual capabilities but there are no guarantees.\nOnly changed capabilities need to be included, all other capabilities keep their values.", + "properties": { + "event": { + "type": "string", + "enum": [ "capabilities" ] + }, + "body": { + "type": "object", + "properties": { + "capabilities": { + "$ref": "#/definitions/Capabilities", + "description": "The set of updated capabilities." + } + }, + "required": [ "capabilities" ] + } + }, + "required": [ "event", "body" ] + }] + }, + "RunInTerminalRequest": { "allOf": [ { "$ref": "#/definitions/Request" }, { "type": "object", @@ -2104,6 +2128,10 @@ "supportsLoadedSourcesRequest": { "type": "boolean", "description": "The debug adapter supports the 'loadedSources' request." + }, + "supportsLogPoints": { + "type": "boolean", + "description": "The debug adapter supports logpoints by interpreting the 'logMessage' attribute of the SourceBreakpoint." } } }, @@ -2502,11 +2530,11 @@ "SourceBreakpoint": { "type": "object", - "description": "Properties of a breakpoint passed to the setBreakpoints request.", + "description": "Properties of a breakpoint or logpoint passed to the setBreakpoints request.", "properties": { "line": { "type": "integer", - "description": "The source line of the breakpoint." + "description": "The source line of the breakpoint or logpoint." }, "column": { "type": "integer", @@ -2519,6 +2547,10 @@ "hitCondition": { "type": "string", "description": "An optional expression that controls how many hits of the breakpoint are ignored. The backend is expected to interpret the expression as needed." + }, + "logMessage": { + "type": "string", + "description": "If this attribute exists and is non-empty, the backend must not 'break' (stop) but log the message instead. Expressions within {} are interpolated." } }, "required": [ "line" ]