From 0e4197be44eb8348fa8a5ce5dbfc65283f8706e7 Mon Sep 17 00:00:00 2001 From: Charlie Egan Date: Thu, 8 Aug 2024 17:19:08 +0100 Subject: [PATCH] Show eval string values in quotes This makes the distinction with undefined clearer. Signed-off-by: Charlie Egan --- src/ls/clients/regal.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ls/clients/regal.ts b/src/ls/clients/regal.ts index bef2bb3..86cee9b 100644 --- a/src/ls/clients/regal.ts +++ b/src/ls/clients/regal.ts @@ -298,7 +298,7 @@ function handleRegalShowEvalResult(params: any) { } if (typeof params.result.value == 'string') { - attachmentMessage = String(params.result.value).replace(/ /g, '\u00a0') + attachmentMessage = `"` + String(params.result.value).replace(/ /g, '\u00a0') + `"` // for strings, which may be long, there is a preference for wrapping // over horizontal scroll present in a pre block. hoverMessage = hoverTitle + "`" + attachmentMessage + "`";