From 3de514a5fdd2d5567528060eb4b2f4d1ebe7767c Mon Sep 17 00:00:00 2001 From: Rafa Mel Date: Sun, 18 Apr 2021 14:01:18 +0200 Subject: [PATCH] fix(tasks): add badge to prompt message --- src/tasks/stdio/prompt.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/tasks/stdio/prompt.ts b/src/tasks/stdio/prompt.ts index eb55f82..1686d71 100644 --- a/src/tasks/stdio/prompt.ts +++ b/src/tasks/stdio/prompt.ts @@ -81,7 +81,12 @@ export function prompt(options: PromptOptions | Empty, task: Task): Task.Async { let response: null | string = null; while (!(await isCancelled(ctx))) { response = await line( - addPrefix(opts.message + ' ', null, 'print', ctx), + addPrefix( + getBadge('prompt') + ' ' + opts.message + ' ', + null, + 'print', + ctx + ), opts.timeout, ctx ).then((res) => {