A status bar item is a status bar contribution that can show text and icons and run a command on click.

Implements

Constructors

Properties

_accessibilityInformation: AccessibilityInformation
_alignment: StatusBarAlignment
_backgroundColor: undefined | ThemeColor
_color: undefined | string | ThemeColor
_command: string | Command
_id: string
_isVisible: boolean
_name: undefined | string
_priority: number
_text: string
_timeoutHandle: undefined | Timeout
_tooltip: undefined | string | MarkdownString
BACKGROUND_COLORS: Map<string, string> = ...

Map from allowed background colors to corresponding foreground colors.

ID_PREFIX: string = 'plugin-status-bar-item'

Accessors

  • get backgroundColor(): undefined | ThemeColor
  • The background color for this entry.

    Note: only the following colors are supported:

    • new ThemeColor('statusBarItem.errorBackground')
    • new ThemeColor('statusBarItem.warningBackground')

    More background colors may be supported in the future.

    Note: when a background color is set, the statusbar may override the color choice to ensure the entry is readable in all themes.

    Returns undefined | ThemeColor

  • set backgroundColor(backgroundColor): void
  • The background color for this entry.

    Note: only the following colors are supported:

    • new ThemeColor('statusBarItem.errorBackground')
    • new ThemeColor('statusBarItem.warningBackground')

    More background colors may be supported in the future.

    Note: when a background color is set, the statusbar may override the color choice to ensure the entry is readable in all themes.

    Parameters

    Returns void

Methods