diff --git a/adapter/package.json b/adapter/package.json index a2339c3..94424d0 100644 --- a/adapter/package.json +++ b/adapter/package.json @@ -1,7 +1,7 @@ { "name": "vscode-debugadapter", "description": "Debug adapter implementation for node", - "version": "1.15.0-pre.2", + "version": "1.15.0-pre.3", "author": "Microsoft Corporation", "license": "MIT", "repository": { @@ -14,7 +14,7 @@ "main": "./lib/main.js", "typings": "./lib/main", "dependencies": { - "vscode-debugprotocol": "^1.15.0-pre.2" + "vscode-debugprotocol": "^1.15.0-pre.3" }, "devDependencies": { "typescript": "^1.8.10" diff --git a/adapter/src/debugSession.ts b/adapter/src/debugSession.ts index 2b06871..417ea2e 100644 --- a/adapter/src/debugSession.ts +++ b/adapter/src/debugSession.ts @@ -535,9 +535,6 @@ export class DebugSession extends ProtocolServer { // This default debug adapter does not support the 'completionsRequest' request. response.body.supportsCompletionsRequest = false; - // The debug adapter leaves escaping newlines in variable values and evaluation results to the client. - response.body.supportsValueEscaping = false; - // This default debug adapter does not support the 'restart' request. response.body.supportsRestartRequest = false; diff --git a/debugProtocol.json b/debugProtocol.json index 5055ef0..71822b8 100644 --- a/debugProtocol.json +++ b/debugProtocol.json @@ -1346,7 +1346,7 @@ "properties": { "value": { "type": "string", - "description": "The new value of the variable. See capability 'supportsValueEscaping' for details about how to treat newlines in multi-line strings." + "description": "The new value of the variable." }, "type": { "type": "string", @@ -1562,7 +1562,7 @@ "properties": { "result": { "type": "string", - "description": "The result of the evaluate request. See capability 'supportsValueEscaping' for details about how to treat newlines in multi-lines strings." + "description": "The result of the evaluate request." }, "type": { "type": "string", @@ -1831,10 +1831,6 @@ }, "description": "Checksum algorithms supported by the debug adapter." }, - "supportsValueEscaping": { - "type": "boolean", - "description": "The debug adapter will be responsible for escaping newlines in variable values and evaluation results, and the client will display them as-is. If missing or false the client will escape newlines as needed." - }, "supportsRestartRequest": { "type": "boolean", "description": "The debug adapter supports the RestartRequest. In this case a client should not implement 'restart' by terminating and relaunching the adapter but by calling the RestartRequest." @@ -2141,7 +2137,7 @@ }, "value": { "type": "string", - "description": "The variable's value. This can be a multi-line text, e.g. for a function the body of a function. See capability 'supportsValueEscaping' for details about how to treat newlines in multi-line strings." + "description": "The variable's value. This can be a multi-line text, e.g. for a function the body of a function." }, "type": { "type": "string", diff --git a/protocol/README.md b/protocol/README.md index fc5766a..2e808bf 100644 --- a/protocol/README.md +++ b/protocol/README.md @@ -8,7 +8,6 @@ This npm module contains declarations for the json-based Visual Studio Code debu ## History * 1.15.x: - * Adds a `supportsValueEscaping` capability that indicates whether the debug adapter takes care of escaping newlines in variable values and evaluation results. * Adds a `reverseContinue` request. * Adds a `restart` request and a corresponding `supportsRestartRequest` capability. diff --git a/protocol/package.json b/protocol/package.json index e8f3b9c..dc86a01 100644 --- a/protocol/package.json +++ b/protocol/package.json @@ -1,7 +1,7 @@ { "name": "vscode-debugprotocol", "description": "Npm module with declarations for the Visual Studio Code debug protocol", - "version": "1.15.0-pre.2", + "version": "1.15.0-pre.3", "author": "Microsoft Corporation", "license": "MIT", "repository": { diff --git a/protocol/src/debugProtocol.ts b/protocol/src/debugProtocol.ts index c8925c3..33092ae 100644 --- a/protocol/src/debugProtocol.ts +++ b/protocol/src/debugProtocol.ts @@ -695,7 +695,7 @@ export module DebugProtocol { /** Response to 'setVariable' request. */ export interface SetVariableResponse extends Response { body: { - /** The new value of the variable. See capability 'supportsValueEscaping' for details about how to treat newlines in multi-line strings. */ + /** The new value of the variable. */ value: string; /** The type of the new value. Typically shown in the UI when hovering over the value. */ type?: string; @@ -797,7 +797,7 @@ export module DebugProtocol { /** Response to 'evaluate' request. */ export interface EvaluateResponse extends Response { body: { - /** The result of the evaluate request. See capability 'supportsValueEscaping' for details about how to treat newlines in multi-lines strings. */ + /** The result of the evaluate request. */ result: string; /** The optional type of the evaluate result. */ type?: string; @@ -927,8 +927,6 @@ export module DebugProtocol { additionalModuleColumns?: ColumnDescriptor[]; /** Checksum algorithms supported by the debug adapter. */ supportedChecksumAlgorithms?: ChecksumAlgorithm[]; - /** The debug adapter will be responsible for escaping newlines in variable values and evaluation results, and the client will display them as-is. If missing or false the client will escape newlines as needed. */ - supportsValueEscaping?: boolean; /** The debug adapter supports the RestartRequest. In this case a client should not implement 'restart' by terminating and relaunching the adapter but by calling the RestartRequest. */ supportsRestartRequest?: boolean; } @@ -1104,7 +1102,7 @@ export module DebugProtocol { export interface Variable { /** The variable's name. */ name: string; - /** The variable's value. This can be a multi-line text, e.g. for a function the body of a function. See capability 'supportsValueEscaping' for details about how to treat newlines in multi-line strings. */ + /** The variable's value. This can be a multi-line text, e.g. for a function the body of a function. */ value: string; /** The type of the variable's value. Typically shown in the UI when hovering over the value. */ type?: string;