Releases the underlying platform item. Idempotent.
Shows text for a while, then goes back to whatever the item said before.
A state the item passes through rather than a second item created for one message, so a "Saved." cannot outlive the item that reported it — and two flashes in a row cannot leave two of them stacked in the corner. Early-dismiss handles are guarded by displayed text; when two consecutive flashes use identical text, treat the earlier handle as superseded rather than disposing it.
What to show
OptionaldurationMs: number
How long for
A handle that ends the message early. Idempotent.
Hides the status bar item.
Hides the spinner and restores the previous text.
Sets mutable presentation properties at once: text, tooltip, command,
background color, and accessibility information. alignment, priority,
and visible are creation-time options; use show/hide for
visibility.
Properties to update
Reference-counted busy indicator: each setBusy(true) must be balanced by
a setBusy(false) before the spinner stops. Two overlapping operations can
mark the item busy without the first one's finish blanking the second's
spinner. Independent of showSpinner, which is a plain on/off flag.
Shows the status bar item.
Shows a spinner with optional text.
Optionaltext: string
Optional text to display next to spinner
Updates the text and optionally the tooltip.
New text to display
Optionaltooltip: string
Optional new tooltip
A managed status bar item with helper methods.
Every method is a no-op once the item is disposed — an async task finishing late may still call
update()without throwing into a torn-down UI.