From ab7294400aee0c93d09371d11485cd0063e47736 Mon Sep 17 00:00:00 2001 From: "Stefan J. Wernli" Date: Fri, 23 Aug 2024 12:57:25 -0700 Subject: [PATCH] Simplify display of evaluation results in VS Code (#1882) Skips prepending "Result: " and json stringify-ing the response from evaluation, since it is already a string. Error before: image Error after: image Success before: image Success after: image Fixes #1871 --- vscode/src/debugger/output.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vscode/src/debugger/output.ts b/vscode/src/debugger/output.ts index eb5a168711..175468b8a9 100644 --- a/vscode/src/debugger/output.ts +++ b/vscode/src/debugger/output.ts @@ -59,8 +59,7 @@ export function createDebugConsoleEventTarget(out: (message: string) => void) { }); eventTarget.addEventListener("Result", (evt) => { - const resultJson = JSON.stringify(evt.detail.value, null, 2); - out(`Result: ${resultJson}`); + out(`\n${evt.detail.value}`); }); return eventTarget; }