From cfa76370a90099dd745efba44c8a498e9f100928 Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Fri, 3 Dec 2021 17:37:25 -0700 Subject: [PATCH] fix type unification of withValueOrInputBox --- projects/kiss-vscode/src/Util.kiss | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/projects/kiss-vscode/src/Util.kiss b/projects/kiss-vscode/src/Util.kiss index f0024fcd..66a2755f 100644 --- a/projects/kiss-vscode/src/Util.kiss +++ b/projects/kiss-vscode/src/Util.kiss @@ -59,10 +59,13 @@ // Macros for implementing commands in Kiss (defMacro withValueOrInputBox [v &body body] - `(if ,v - {,@body} - (awaitLet [,v (inputBox)] - ,@body))) + `{ + (if ,v + {,@body} + (awaitLet [,v (inputBox)] + ,@body)) + null + }) (defMacro withValueOrQuickPick [v options &body body] `(if ,v