Skip to content

Commit 4ace439

Browse files
committed
feat: use a modal for the installation choices instead of a quick pick
A modal is now used instead of a quick pick. Modals are much more intentional, specially for choosing the installation method of the LocalStack CLI.
1 parent fc7cdaa commit 4ace439

File tree

1 file changed

+12
-16
lines changed

1 file changed

+12
-16
lines changed

src/utils/install.ts

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -90,23 +90,19 @@ export async function runInstallProcess(
9090
message: "Choose installation scope...",
9191
});
9292

93-
const installScope = await window.showQuickPick(
94-
[
95-
{
96-
label: "Local (just me)",
97-
description: "Install LocalStack CLI for current user only",
98-
value: "local",
99-
},
100-
{
101-
label: "Global (all users)",
102-
description:
103-
"Install LocalStack CLI for all users (requires admin privileges)",
104-
value: "global",
105-
},
106-
],
93+
const installScope = await window.showInformationMessage(
94+
"Choose a LocalStack CLI installation scope",
10795
{
108-
placeHolder: "Select installation scope",
109-
ignoreFocusOut: true,
96+
modal: true,
97+
},
98+
99+
{
100+
title: "Install for current user only",
101+
value: "local",
102+
},
103+
{
104+
title: "Install for all users",
105+
value: "global",
110106
},
111107
);
112108

0 commit comments

Comments
 (0)