Skip to content

Commit a6a9dae

Browse files
committed
utils: allow grouping multi-select quick picks
1 parent fb76dbf commit a6a9dae

File tree

4 files changed

+3
-8
lines changed

4 files changed

+3
-8
lines changed

utils/index.d.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1047,7 +1047,6 @@ export interface IAzureQuickPickOptions extends VSCodeQuickPickOptions, AzExtUse
10471047

10481048
/**
10491049
* If true, you must specify a `group` property on each `IAzureQuickPickItem` and the picks will be grouped into collapsible sections
1050-
* This is not compatible with `canPickMany`
10511050
*/
10521051
enableGrouping?: boolean;
10531052

utils/package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

utils/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@microsoft/vscode-azext-utils",
33
"author": "Microsoft Corporation",
4-
"version": "2.5.11",
4+
"version": "2.5.12",
55
"description": "Common UI tools for developing Azure extensions for VS Code",
66
"tags": [
77
"azure",

utils/src/userInput/showQuickPick.ts

-4
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,6 @@ export async function createQuickPickItems<TPick extends types.IAzureQuickPickIt
157157
} else if (!options.enableGrouping) {
158158
return picks;
159159
} else {
160-
if (options.canPickMany) {
161-
throw new Error('Internal error: "canPickMany" and "enableGrouping" are not supported at the same time.')
162-
}
163-
164160
for (const pick of picks) {
165161
const groupName: string | undefined = pick.group;
166162
const group = groups.find(g => g.name === groupName);

0 commit comments

Comments
 (0)