From 5b2362d64b287f561f4543903c8b42112b8cee3c Mon Sep 17 00:00:00 2001 From: Andre Weinand Date: Wed, 30 Aug 2017 17:56:07 +0200 Subject: [PATCH] use DAP@1.23.0 --- npm-shrinkwrap.json | 6 +- package.json | 2 +- .../parts/debug/common/debugProtocol.d.ts | 67 ++++++++++++++++++- 3 files changed, 69 insertions(+), 6 deletions(-) diff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.json index 6b056f1e458..55a5e274cd5 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.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" + "version": "1.23.0", + "from": "vscode-debugprotocol@1.23.0", + "resolved": "https://registry.npmjs.org/vscode-debugprotocol/-/vscode-debugprotocol-1.23.0.tgz" }, "vscode-ripgrep": { "version": "0.0.25", diff --git a/package.json b/package.json index c799d5d6bd9..341b6871e56 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.23.0-pre.0", + "vscode-debugprotocol": "1.23.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 4c7b76d7fe6..0892be44843 100644 --- a/src/vs/workbench/parts/debug/common/debugProtocol.d.ts +++ b/src/vs/workbench/parts/debug/common/debugProtocol.d.ts @@ -199,6 +199,19 @@ declare module DebugProtocol { }; } + /** Event message for 'loadedSource' event type. + The event indicates that some source has been added, changed, or removed from the set of all loaded sources. + */ + export interface LoadedSourceEvent extends Event { + // event: 'loadedSource'; + body: { + /** The reason for the event. */ + reason: 'new' | 'changed' | 'removed'; + /** The new, changed, or removed source. */ + source: Source; + }; + } + /** Event message for 'process' event type. The event indicates that the debugger has begun debugging a new process. Either one that it has launched, or one that it has attached to. */ @@ -834,6 +847,26 @@ declare module DebugProtocol { }; } + /** Retrieves the set of all sources currently loaded by the debugged process. */ + export interface LoadedSourcesRequest extends Request { + // command: 'loadedSources'; + arguments?: LoadedSourcesArguments; + } + + /** Arguments for 'loadedSources' request. + The 'loadedSources' request has no standardized arguments. + */ + export interface LoadedSourcesArguments { + } + + /** Response to 'loadedSources' request. */ + export interface LoadedSourcesResponse extends Response { + body: { + /** Set of loaded sources. */ + sources: Source[]; + }; + } + /** Evaluate request; value of command field is 'evaluate'. Evaluates the given expression in the context of the top most stack frame. The expression has access to any variables and arguments that are in scope. @@ -868,6 +901,8 @@ declare module DebugProtocol { result: string; /** The optional type of the evaluate result. */ type?: string; + /** Properties of a evaluate result that can be used to determine how to render the result in the UI. */ + presentationHint?: VariablePresentationHint; /** If variablesReference is > 0, the evaluate result is structured and its children can be retrieved by passing variablesReference to the VariablesRequest. */ variablesReference: number; /** The number of named child variables. @@ -1034,6 +1069,8 @@ declare module DebugProtocol { supportTerminateDebuggee?: boolean; /** The debug adapter supports the delayed loading of parts of the stack, which requires that both the 'startFrame' and 'levels' arguments and the 'totalFrames' result of the 'StackTrace' request are supported. */ supportsDelayedStackTraceLoading?: boolean; + /** The debug adapter supports the 'loadedSources' request. */ + supportsLoadedSourcesRequest?: boolean; } /** An ExceptionBreakpointsFilter is shown in the UI as an option for configuring how exceptions are dealt with. */ @@ -1145,6 +1182,8 @@ declare module DebugProtocol { presentationHint?: 'normal' | 'emphasize' | 'deemphasize'; /** The (optional) origin of this source: possible values 'internal module', 'inlined content from source map', etc. */ origin?: string; + /** An optional list of sources that are related to this source. These may be the source that generated this source. */ + sources?: Source[]; /** Optional data that a debug adapter might want to loop through the client. The client should leave the data intact and persist it across sessions. The client should not interpret the data. */ adapterData?: any; /** The checksums associated with this file. */ @@ -1215,8 +1254,8 @@ declare module DebugProtocol { value: string; /** The type of the variable's value. Typically shown in the UI when hovering over the value. */ type?: string; - /** Properties of a variable that can be used to determine how to render the variable in the UI. Format of the string value: TBD. */ - kind?: string; + /** Properties of a variable that can be used to determine how to render the variable in the UI. */ + presentationHint?: VariablePresentationHint; /** Optional evaluatable name of this variable which can be passed to the 'EvaluateRequest' to fetch the variable's value. */ evaluateName?: string; /** If variablesReference is > 0, the variable is structured and its children can be retrieved by passing variablesReference to the VariablesRequest. */ @@ -1231,6 +1270,30 @@ declare module DebugProtocol { indexedVariables?: number; } + /** Optional properties of a variable that can be used to determine how to render the variable in the UI. */ + export interface VariablePresentationHint { + /** The kind of variable. Before introducing additional values, try to use the listed values. + Values: 'property', 'method', 'class', 'data', 'event', 'baseClass', 'innerClass', 'interface', 'mostDerivedClass', etc. + */ + kind?: string; + /** Set of attributes represented as an array of strings. Before introducing additional values, try to use the listed values. + Values: + 'static': Indicates that the object is static. + 'constant': Indicates that the object is a constant. + 'readOnly': Indicates that the object is read only. + 'rawString': Indicates that the object is a raw string. + 'hasObjectId': Indicates that the object can have an Object ID created for it. + 'canHaveObjectId': Indicates that the object has an Object ID associated with it. + 'hasSideEffects': Indicates that the evaluation had side effects. + etc. + */ + attributes?: string[]; + /** Visibility of variable. Before introducing additional values, try to use the listed values. + Values: 'public', 'private', 'protected', 'internal', 'final', etc. + */ + visibility?: string; + } + /** Properties of a breakpoint passed to the setBreakpoints request. */ export interface SourceBreakpoint { /** The source line of the breakpoint. */ -- GitLab