From 96c545001a4da4706ae2b136ed228fe51f786843 Mon Sep 17 00:00:00 2001 From: Andre Weinand Date: Mon, 28 Aug 2017 15:50:34 +0200 Subject: [PATCH] upgrade to DAP 1.23.0-pre.0 --- npm-shrinkwrap.json | 6 +-- package.json | 2 +- .../parts/debug/common/debugProtocol.d.ts | 43 ++++++++++++++----- 3 files changed, 37 insertions(+), 14 deletions(-) diff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.json index f943b606f5a..3b302b49fe5 100644 --- a/npm-shrinkwrap.json +++ b/npm-shrinkwrap.json @@ -547,9 +547,9 @@ "resolved": "git://github.com/jrieken/v8-profiler.git#5e4a336693e1d5b079c7aecd286a1abcfbc10421" }, "vscode-debugprotocol": { - "version": "1.22.0", - "from": "vscode-debugprotocol@1.22.0", - "resolved": "https://registry.npmjs.org/vscode-debugprotocol/-/vscode-debugprotocol-1.22.0.tgz" + "version": "1.23.0-pre.0", + "from": "vscode-debugprotocol@1.23.0-pre.0", + "resolved": "https://registry.npmjs.org/vscode-debugprotocol/-/vscode-debugprotocol-1.23.0-pre.0.tgz" }, "vscode-ripgrep": { "version": "0.0.25", diff --git a/package.json b/package.json index aaf934266b0..b16c5f124d6 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,7 @@ "nsfw": "1.0.16", "semver": "4.3.6", "v8-profiler": "jrieken/v8-profiler#vscode", - "vscode-debugprotocol": "1.22.0", + "vscode-debugprotocol": "1.23.0-pre.0", "vscode-ripgrep": "0.0.25", "vscode-textmate": "^3.1.5", "winreg": "1.2.0", diff --git a/src/vs/workbench/parts/debug/common/debugProtocol.d.ts b/src/vs/workbench/parts/debug/common/debugProtocol.d.ts index 9f455747f08..4c7b76d7fe6 100644 --- a/src/vs/workbench/parts/debug/common/debugProtocol.d.ts +++ b/src/vs/workbench/parts/debug/common/debugProtocol.d.ts @@ -12,7 +12,9 @@ declare module DebugProtocol { export interface ProtocolMessage { /** Sequence number. */ seq: number; - /** One of 'request', 'response', or 'event'. */ + /** Message type. + Values: 'request', 'response', 'event', etc. + */ type: string; } @@ -71,8 +73,9 @@ declare module DebugProtocol { export interface StoppedEvent extends Event { // event: 'stopped'; body: { - /** The reason for the event (such as: 'step', 'breakpoint', 'exception', 'pause', 'entry'). + /** The reason for the event. For backward compatibility this string is shown in the UI if the 'description' attribute is missing (but it must not be translated). + Values: 'step', 'breakpoint', 'exception', 'pause', 'entry', etc. */ reason: string; /** The full reason for the event, e.g. 'Paused on exception'. This string is shown in the UI as is. */ @@ -134,7 +137,9 @@ declare module DebugProtocol { export interface ThreadEvent extends Event { // event: 'thread'; body: { - /** The reason for the event (such as: 'started', 'exited'). */ + /** The reason for the event. + Values: 'started', 'exited', etc. + */ reason: string; /** The identifier of the thread. */ threadId: number; @@ -147,12 +152,20 @@ declare module DebugProtocol { export interface OutputEvent extends Event { // event: 'output'; body: { - /** The category of output (such as: 'console', 'stdout', 'stderr', 'telemetry'). If not specified, 'console' is assumed. */ + /** The output category. If not specified, 'console' is assumed. + Values: 'console', 'stdout', 'stderr', 'telemetry', etc. + */ category?: string; /** The output to report. */ output: string; /** If an attribute 'variablesReference' exists and its value is > 0, the output contains objects which can be retrieved by passing variablesReference to the VariablesRequest. */ variablesReference?: number; + /** An optional source location where the output was produced. */ + source?: Source; + /** An optional source location line where the output was produced. */ + line?: number; + /** An optional source location column where the output was produced. */ + column?: number; /** Optional data to report. For the 'telemetry' category the data will be sent to telemetry, for the other categories the data is shown in JSON format. */ data?: any; }; @@ -164,7 +177,9 @@ declare module DebugProtocol { export interface BreakpointEvent extends Event { // event: 'breakpoint'; body: { - /** The reason for the event (such as: 'changed', 'new'). */ + /** The reason for the event. + Values: 'changed', 'new', etc. + */ reason: string; /** The breakpoint. */ breakpoint: Breakpoint; @@ -197,9 +212,9 @@ declare module DebugProtocol { /** If true, the process is running on the same computer as the debug adapter. */ isLocalProcess?: boolean; /** Describes how the debug engine started debugging this process. - launch: Process was launched under the debugger. - attach: Debugger attached to an existing process. - attachForSuspendedLaunch: A project launcher component has launched a new process in a suspended state and then asked the debugger to attach. + 'launch': Process was launched under the debugger. + 'attach': Debugger attached to an existing process. + 'attachForSuspendedLaunch': A project launcher component has launched a new process in a suspended state and then asked the debugger to attach. */ startMethod?: 'launch' | 'attach' | 'attachForSuspendedLaunch'; }; @@ -259,7 +274,9 @@ declare module DebugProtocol { linesStartAt1?: boolean; /** If true all column numbers are 1-based (default). */ columnsStartAt1?: boolean; - /** Determines in what format paths are specified. Possible values are 'path' or 'uri'. The default is 'path', which is the native format. */ + /** Determines in what format paths are specified. The default is 'path', which is the native format. + Values: 'path', 'uri', etc. + */ pathFormat?: string; /** Client supports the optional type attribute for variables. */ supportsVariableType?: boolean; @@ -832,7 +849,13 @@ declare module DebugProtocol { expression: string; /** Evaluate the expression in the scope of this stack frame. If not specified, the expression is evaluated in the global scope. */ frameId?: number; - /** The context in which the evaluate request is run. Possible values are 'watch' if evaluate is run in a watch, 'repl' if run from the REPL console, or 'hover' if run from a data hover. */ + /** The context in which the evaluate request is run. + Values: + 'watch': evaluate is run in a watch. + 'repl': evaluate is run from REPL console. + 'hover': evaluate is run from a data hover. + etc. + */ context?: string; /** Specifies details on how to format the Evaluate result. */ format?: ValueFormat;