Create utility function wrapping createQuickPick
and migrate off showQuickPick
#1127
Labels
extension development
Topics specifically relating to the development process for the extension (or sidecar), not usage.
We mostly use
showQuickPick
, but there are instances where we may want extra behavior (secondary buttons, callbacks on selection/focus, etc) that aren't easily done withshowQuickPick
and are only supported withcreateQuickPick
.However, using
createQuickPick
requires using a lot of boilerplate for event listening and showing/hiding the quickpick element, which is a pain to copy/paste for different quickpick uses.We should have a centralized utility/helper function around
createQuickPick
that effectively behaves the same asshowQuickPick
(for most of our use-cases) to create a quickpick, but with additional options for adding nav/item buttons (and their callbacks).The text was updated successfully, but these errors were encountered: