Builds a QuickInputButtonLike, accepting a codicon name in place
of a hand-built theme icon the same way toPickItem
does for item icons.
Pass the result to PickOptions.buttons (title bar) or
PickItemDisplay.buttons (inline on a row), and handle presses with
PickOptions.onTriggerButton / PickOptions.onTriggerItemButton.
A button with no handler renders but does nothing.
Parameters
icon: string|{id:string}
A codicon name (e.g. 'refresh') or an explicit icon path
Builds a
QuickInputButtonLike, accepting a codicon name in place of a hand-built theme icon the same way toPickItem does for item icons.Pass the result to
PickOptions.buttons(title bar) or PickItemDisplay.buttons (inline on a row), and handle presses withPickOptions.onTriggerButton/PickOptions.onTriggerItemButton. A button with no handler renders but does nothing.