From 90affd9817f2bf2631bf91445eb4419ee280a182 Mon Sep 17 00:00:00 2001 From: David Lee Date: Thu, 18 Mar 2021 11:07:37 +0800 Subject: [PATCH 1/3] Add properties to blazorwasm debug configuration. --- package.json | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/package.json b/package.json index 6bdaf4232..08906454f 100644 --- a/package.json +++ b/package.json @@ -3263,6 +3263,37 @@ "default": true } } + }, + "justMyCode": { + "type": "boolean", + "description": "Optional flag to only show user code.", + "default": true + }, + "sourceFileMap": { + "type": "object", + "description": "Optional source file mappings passed to the debug engine. Example: '{ \"C:\\foo\":\"/home/user/foo\" }'", + "additionalProperties": { + "type": "string" + }, + "default": { + "": "" + } + }, + "browserConfig": { + "description": "Options based to the underlying JavaScript debugger. For more info, see https://github.com/microsoft/vscode-js-debug/blob/master/OPTIONS.md.", + "type": "object", + "required": [], + "default": {}, + "properties": { + "outputCapture": { + "enum": [ + "console", + "std" + ], + "description": "From where to capture output messages: the default debug API if set to `console`, or stdout/stderr streams if set to `std`.", + "default": "console" + } + } } } }, From fa6cb0cd11b1c8a11868f7818390f1458a8a65c8 Mon Sep 17 00:00:00 2001 From: David Lee Date: Wed, 24 Mar 2021 23:42:47 +0800 Subject: [PATCH 2/3] Move properties under dotNetConfig object. --- package.json | 32 ++++++++++++++++++++------------ 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/package.json b/package.json index 08906454f..89c29cd2b 100644 --- a/package.json +++ b/package.json @@ -3264,19 +3264,27 @@ } } }, - "justMyCode": { - "type": "boolean", - "description": "Optional flag to only show user code.", - "default": true - }, - "sourceFileMap": { + "dotNetConfig": { + "description": "Options passed to the underlying .NET debugger. For more info, see https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger.md.", "type": "object", - "description": "Optional source file mappings passed to the debug engine. Example: '{ \"C:\\foo\":\"/home/user/foo\" }'", - "additionalProperties": { - "type": "string" - }, - "default": { - "": "" + "required": [], + "default": {}, + "properties": { + "justMyCode": { + "type": "boolean", + "description": "Optional flag to only show user code.", + "default": true + }, + "sourceFileMap": { + "type": "object", + "description": "Optional source file mappings passed to the debug engine. Example: '{ \"C:\\foo\":\"/home/user/foo\" }'", + "additionalProperties": { + "type": "string" + }, + "default": { + "": "" + } + } } }, "browserConfig": { From ce4c27e4fc54664e52e7ab29c4576ef82f033b5a Mon Sep 17 00:00:00 2001 From: David Lee Date: Thu, 25 Mar 2021 00:33:29 +0800 Subject: [PATCH 3/3] Move logging property to dotNetConfig. --- package.json | 96 ++++++++++++++++++++++++++-------------------------- 1 file changed, 48 insertions(+), 48 deletions(-) diff --git a/package.json b/package.json index 89c29cd2b..ee16acf54 100644 --- a/package.json +++ b/package.json @@ -3216,54 +3216,6 @@ "type": "object", "description": "Environment variables passed to dotnet. Only valid for hosted apps." }, - "logging": { - "description": "Optional flags to determine what types of messages should be logged to the output window. Applicable only for the app server of hosted Blazor WASM apps.", - "type": "object", - "required": [], - "default": {}, - "properties": { - "exceptions": { - "type": "boolean", - "description": "Optional flag to determine whether exception messages should be logged to the output window.", - "default": true - }, - "moduleLoad": { - "type": "boolean", - "description": "Optional flag to determine whether module load events should be logged to the output window.", - "default": true - }, - "programOutput": { - "type": "boolean", - "description": "Optional flag to determine whether program output should be logged to the output window when not using an external console.", - "default": true - }, - "engineLogging": { - "type": "boolean", - "description": "Optional flag to determine whether diagnostic engine logs should be logged to the output window.", - "default": false - }, - "browserStdOut": { - "type": "boolean", - "description": "Optional flag to determine if stdout text from the launching the web browser should be logged to the output window.", - "default": true - }, - "elapsedTiming": { - "type": "boolean", - "description": "If true, engine logging will include `adapterElapsedTime` and `engineElapsedTime` properties to indicate the amount of time, in microseconds, that a request took.", - "default": false - }, - "threadExit": { - "type": "boolean", - "description": "Controls if a message is logged when a thread in the target process exits. Default: `false`.", - "default": false - }, - "processExit": { - "type": "boolean", - "description": "Controls if a message is logged when the target process exits, or debugging is stopped. Default: `true`.", - "default": true - } - } - }, "dotNetConfig": { "description": "Options passed to the underlying .NET debugger. For more info, see https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger.md.", "type": "object", @@ -3275,6 +3227,54 @@ "description": "Optional flag to only show user code.", "default": true }, + "logging": { + "description": "Optional flags to determine what types of messages should be logged to the output window. Applicable only for the app server of hosted Blazor WASM apps.", + "type": "object", + "required": [], + "default": {}, + "properties": { + "exceptions": { + "type": "boolean", + "description": "Optional flag to determine whether exception messages should be logged to the output window.", + "default": true + }, + "moduleLoad": { + "type": "boolean", + "description": "Optional flag to determine whether module load events should be logged to the output window.", + "default": true + }, + "programOutput": { + "type": "boolean", + "description": "Optional flag to determine whether program output should be logged to the output window when not using an external console.", + "default": true + }, + "engineLogging": { + "type": "boolean", + "description": "Optional flag to determine whether diagnostic engine logs should be logged to the output window.", + "default": false + }, + "browserStdOut": { + "type": "boolean", + "description": "Optional flag to determine if stdout text from the launching the web browser should be logged to the output window.", + "default": true + }, + "elapsedTiming": { + "type": "boolean", + "description": "If true, engine logging will include `adapterElapsedTime` and `engineElapsedTime` properties to indicate the amount of time, in microseconds, that a request took.", + "default": false + }, + "threadExit": { + "type": "boolean", + "description": "Controls if a message is logged when a thread in the target process exits. Default: `false`.", + "default": false + }, + "processExit": { + "type": "boolean", + "description": "Controls if a message is logged when the target process exits, or debugging is stopped. Default: `true`.", + "default": true + } + } + }, "sourceFileMap": { "type": "object", "description": "Optional source file mappings passed to the debug engine. Example: '{ \"C:\\foo\":\"/home/user/foo\" }'",