@@ -1638,8 +1638,18 @@ declare module 'vscode' {
16381638 provideTextDocumentContent(uri: Uri, token: CancellationToken): ProviderResult<string>;
16391639 }
16401640
1641+ /**
1642+ * The kind of {@link QuickPickItem quick pick item}.
1643+ */
16411644 export enum QuickPickItemKind {
1645+ /**
1646+ * When a {@link QuickPickItem} has a kind of {@link Separator}, the item is just a visual separator and does not represent a real item.
1647+ * The only property that applies is {@link label}. All other properties on {@link QuickPickItem} will be ignored and have no effect.
1648+ */
16421649 Separator = -1,
1650+ /**
1651+ * The default {@link QuickPickItem.kind} is an item that can be selected in the quick pick.
1652+ */
16431653 Default = 0,
16441654 }
16451655
@@ -1655,17 +1665,25 @@ declare module 'vscode' {
16551665 */
16561666 label: string;
16571667
1668+ /**
1669+ * The kind of QuickPickItem that will determine how this item is rendered in the quick pick. When not specified,
1670+ * the default is {@link QuickPickItemKind.Default}.
1671+ */
16581672 kind?: QuickPickItemKind;
16591673
16601674 /**
16611675 * A human-readable string which is rendered less prominent in the same line. Supports rendering of
16621676 * {@link ThemeIcon theme icons} via the `$(<name>)`-syntax.
1677+ *
1678+ * Note: this property is ignored when {@link kind} is set to {@link QuickPickItemKind.Separator}
16631679 */
16641680 description?: string;
16651681
16661682 /**
16671683 * A human-readable string which is rendered less prominent in a separate line. Supports rendering of
16681684 * {@link ThemeIcon theme icons} via the `$(<name>)`-syntax.
1685+ *
1686+ * Note: this property is ignored when {@link kind} is set to {@link QuickPickItemKind.Separator}
16691687 */
16701688 detail?: string;
16711689
@@ -1676,11 +1694,15 @@ declare module 'vscode' {
16761694 * (*Note:* This is only honored when the picker allows multiple selections.)
16771695 *
16781696 * @see {@link QuickPickOptions.canPickMany}
1697+ *
1698+ * Note: this property is ignored when {@link kind} is set to {@link QuickPickItemKind.Separator}
16791699 */
16801700 picked?: boolean;
16811701
16821702 /**
16831703 * Always show this item.
1704+ *
1705+ * Note: this property is ignored when {@link kind} is set to {@link QuickPickItemKind.Separator}
16841706 */
16851707 alwaysShow?: boolean;
16861708
@@ -1689,6 +1711,8 @@ declare module 'vscode' {
16891711 * an {@link QuickPickItemButtonEvent} when clicked. Buttons are only rendered when using a quickpick
16901712 * created by the {@link window.createQuickPick()} API. Buttons are not rendered when using
16911713 * the {@link window.showQuickPick()} API.
1714+ *
1715+ * Note: this property is ignored when {@link kind} is set to {@link QuickPickItemKind.Separator}
16921716 */
16931717 buttons?: readonly QuickInputButton[];
16941718 }
0 commit comments