Shows a quick pick for several choices. Resolves undefined when dismissed.
Optionaloptions: PickOptions<T>Shows a quick pick for one choice. Resolves undefined when dismissed.
items may be a promise, in which case the picker opens immediately with
a busy indicator while the list resolves — worth doing when building it
means a file scan or an API call.
Optionaloptions: PickOptions<T>Shows an input box. Resolves undefined when dismissed/aborted and rejects when validation throws or rejects.
Starts a multi-step wizard, with a working Back button between steps.
Asking the user for something.
One service rather than four free functions taking a capability, for the same reason as Localization and Editors: every member needs the same platform surface, and threading it through each call is bookkeeping the caller should not be doing.
Every interactive call accepts the operation's signal (wizard calls take it at
run()), so a control can close when the command is cancelled or the application stops — not only when the user presses Escape.Example