Skip to content

Commit

Permalink
support objects in OutputEvent; fixes #79
Browse files Browse the repository at this point in the history
  • Loading branch information
weinand committed Nov 21, 2016
1 parent 206c57f commit 8a5fbfa
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 5 deletions.
4 changes: 2 additions & 2 deletions adapter/package.json
@@ -1,7 +1,7 @@
{
"name": "vscode-debugadapter",
"description": "Debug adapter implementation for node",
"version": "1.15.0-pre.3",
"version": "1.15.0-pre.4",
"author": "Microsoft Corporation",
"license": "MIT",
"repository": {
Expand All @@ -14,7 +14,7 @@
"main": "./lib/main.js",
"typings": "./lib/main",
"dependencies": {
"vscode-debugprotocol": "^1.15.0-pre.3"
"vscode-debugprotocol": "^1.15.0-pre.4"
},
"devDependencies": {
"typescript": "^1.8.10"
Expand Down
6 changes: 5 additions & 1 deletion debugProtocol.json
Expand Up @@ -259,7 +259,7 @@
"OutputEvent": {
"allOf": [ { "$ref": "#/definitions/Event" }, {
"type": "object",
"description": "Event message for 'output' event type.\nThe event indicates that the target has produced output.",
"description": "Event message for 'output' event type.\nThe event indicates that the target has produced some output.",
"properties": {
"event": {
"type": "string",
Expand All @@ -277,6 +277,10 @@
"type": "string",
"description": "The output to report."
},
"variablesReference": {
"type": "number",
"description": "If an attribute 'variablesReference' exists and its value is > 0, the output contains objects which can be retrieved by passing variablesReference to the VariablesRequest."
},
"data": {
"type": [ "array", "boolean", "integer", "null", "number" , "object", "string" ],
"description": "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."
Expand Down
1 change: 1 addition & 0 deletions protocol/README.md
Expand Up @@ -10,6 +10,7 @@ This npm module contains declarations for the json-based Visual Studio Code debu
* 1.15.x:
* Adds a `reverseContinue` request.
* Adds a `restart` request and a corresponding `supportsRestartRequest` capability.
* Adds a `variablesReference` attribute to the `OutputEvent`.

* 1.14.x:
* Adds optional `type` attribute to the `SetVariableResponse` type.
Expand Down
2 changes: 1 addition & 1 deletion 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.3",
"version": "1.15.0-pre.4",
"author": "Microsoft Corporation",
"license": "MIT",
"repository": {
Expand Down
4 changes: 3 additions & 1 deletion protocol/src/debugProtocol.ts
Expand Up @@ -138,7 +138,7 @@ export module DebugProtocol {
}

/** Event message for 'output' event type.
The event indicates that the target has produced output.
The event indicates that the target has produced some output.
*/
export interface OutputEvent extends Event {
// event: 'output';
Expand All @@ -147,6 +147,8 @@ export module DebugProtocol {
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;
/** 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;
};
Expand Down

0 comments on commit 8a5fbfa

Please sign in to comment.