pub struct StatusBarEntryDTO {Show 13 fields
pub EntryIdentifier: String,
pub ItemIdentifier: String,
pub ExtensionIdentifier: String,
pub Name: Option<String>,
pub Text: String,
pub Tooltip: Option<Value>,
pub HasTooltipProvider: bool,
pub Command: Option<Value>,
pub Color: Option<Value>,
pub BackgroundColor: Option<Value>,
pub IsAlignedLeft: bool,
pub Priority: Option<f64>,
pub AccessibilityInformation: Option<Value>,
}Expand description
A serializable struct that represents the complete state of a single status
bar item, analogous to vscode.StatusBarItem.
This DTO is sent from the Cocoon sidecar to the Mountain host whenever
an extension creates or updates a status bar item, providing the host with
all the information needed to render it in the UI.
Fields§
§EntryIdentifier: StringAn internal, host-generated unique ID for this entry instance.
ItemIdentifier: StringThe identifier of the status bar item, as provided by the extension.
ExtensionIdentifier: StringThe identifier of the extension that owns this status bar item.
Name: Option<String>An optional name for the status bar item, used for identification.
Text: StringThe text to be displayed for this item (can include icons like
$(icon)).
Tooltip: Option<Value>The tooltip to show when hovering over the item. Can be a simple string
or a complex IMarkdownStringDTO.
HasTooltipProvider: boolA flag indicating if the extension host has a dynamic tooltip provider for this item, requiring a reverse RPC call to resolve.
Command: Option<Value>The command to execute when the item is clicked. Serialized
CommandDTO.
Color: Option<Value>The foreground color for this item. Serialized string | ThemeColor.
BackgroundColor: Option<Value>The background color for this item. Serialized ThemeColor.
IsAlignedLeft: boolIf true, the item is aligned to the left of the status bar.
Priority: Option<f64>The priority of this item. Higher numbers are shown more to the left (for left-aligned items) or more to the right (for right-aligned items).
AccessibilityInformation: Option<Value>Accessibility information for screen readers. Serialized
AccessibilityInformation.
Trait Implementations§
Source§impl Clone for StatusBarEntryDTO
impl Clone for StatusBarEntryDTO
Source§fn clone(&self) -> StatusBarEntryDTO
fn clone(&self) -> StatusBarEntryDTO
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more