Skip to content

Commit 8541d5b

Browse files
Improve docs on QuickPickItem.picked. Fixes microsoft#138070
1 parent f6da239 commit 8541d5b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/vscode-dts/vscode.d.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1661,8 +1661,10 @@ declare module 'vscode' {
16611661
detail?: string;
16621662

16631663
/**
1664-
* Optional flag indicating if this item is picked initially.
1665-
* (Only honored when the picker allows multiple selections.)
1664+
* Optional flag indicating if this item is picked initially. This is only honored when using
1665+
* the {@link window.showQuickPick()} API. To do the same thing with the {@link window.createQuickPick()} API,
1666+
* simply set the {@link QuickPick.selectedItems} to the items you want picked initially.
1667+
* (*Note:* This is only honored when the picker allows multiple selections.)
16661668
*
16671669
* @see {@link QuickPickOptions.canPickMany}
16681670
*/

0 commit comments

Comments
 (0)