From db96d873b92efe16503a49e4f4e60b8b658e7b64 Mon Sep 17 00:00:00 2001 From: Alvaro Saurin Date: Fri, 18 Dec 2020 22:07:05 +0100 Subject: [PATCH] Minor fixes Signed-off-by: Alvaro Saurin --- src/commands/utils.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/commands/utils.ts b/src/commands/utils.ts index fb6ff6c..1c57bce 100644 --- a/src/commands/utils.ts +++ b/src/commands/utils.ts @@ -25,6 +25,8 @@ export async function tryResolveClusterNode(target: any): Promise { const clusters = await longRunning(progressMessage, () => k3d.getClusters(shell)); if (failed(clusters)) { @@ -34,7 +36,13 @@ export async function promptCluster(prompt: string, progressMessage: string): Pr await vscode.window.showErrorMessage(`No K3d clusters running`); return undefined; } else { - return await vscode.window.showQuickPick(clusters.result.map((c) => c.name)); + const clustersNames = clusters.result.map((c) => c.name); + + return await vscode.window.showQuickPick(clustersNames, { + placeHolder: prompt, + canPickMany: false, + ignoreFocusOut: true + }); } } }