From 527cd3c5904a9a937b8a62c70a9d93bf4af8fb60 Mon Sep 17 00:00:00 2001 From: Gerard Braad Date: Tue, 9 May 2023 21:17:28 +0800 Subject: [PATCH] Changed preset text Removed the placeholder text and replaced with a temporary solution. Also, the preset is stylized to represent the product names. --- src/crc-setup.ts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/crc-setup.ts b/src/crc-setup.ts index f48e92e..62fdc32 100644 --- a/src/crc-setup.ts +++ b/src/crc-setup.ts @@ -37,9 +37,9 @@ export async function needSetup(): Promise { export async function setUpCrc(logger: extensionApi.Logger, askForPreset = false): Promise { if (askForPreset) { const preset = await extensionApi.window.showInformationMessage( - 'Which preset do you want to run?\n\nOpenShift offers a full cluster\n\nMicroshift is a lightweight ...', - 'openshift', - 'microshift', + 'Which preset bundle would you like to use with OpenShift Local. Microshift (experimental), provides a lightweight and optimized environment with a limited set of services. OpenShift, provides a single node OpenShift cluster with a fuller set of services, including a web console (requires more resources).', + 'OpenShift', + 'MicroShift (experimental)', ); if (!preset) { extensionApi.window.showNotification({ @@ -47,7 +47,11 @@ export async function setUpCrc(logger: extensionApi.Logger, askForPreset = false body: 'Default preset will be used.', }); } else { - await execPromise(getCrcCli(), ['config', 'set', 'preset', preset]); + let choice = preset.toLowerCase(); + if(choice.includes('microshift')) { + choice = 'microshift'; + } + await execPromise(getCrcCli(), ['config', 'set', 'preset', choice]); } }