Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CommonFrontendContribution

Hierarchy

  • CommonFrontendContribution

Implements

Index

Constructors

constructor

Properties

Protected Readonly aboutDialog

aboutDialog: AboutDialog

Protected Readonly authenticationService

authenticationService: AuthenticationService

Protected Readonly clipboardService

clipboardService: ClipboardService

Protected Readonly commandRegistry

commandRegistry: CommandRegistry

Protected Readonly contextKeyService

contextKeyService: ContextKeyService

Protected Readonly encodingRegistry

encodingRegistry: EncodingRegistry

Protected Readonly environments

environments: EnvVariablesServer

Protected Readonly iconThemes

iconThemes: IconThemeService

Protected Readonly localizationProvider

localizationProvider: AsyncLocalizationProvider

Protected Readonly messageService

messageService: MessageService

Protected Readonly openerService

openerService: OpenerService

Protected Readonly preferenceService

preferenceService: PreferenceService

Protected Readonly preferences

Protected Readonly quickInputService

quickInputService: QuickInputService

Protected Readonly resourceContextKey

resourceContextKey: ResourceContextKey

Protected Readonly selectionService

selectionService: SelectionService

Protected Readonly shell

Protected shouldPreventClose

shouldPreventClose: boolean = false

Protected Readonly storageService

storageService: StorageService

Protected Readonly themeService

themeService: ThemeService

Methods

Private canToggleMaximized

  • canToggleMaximized(event?: Event): boolean

configure

Protected configureDisplayLanguage

  • configureDisplayLanguage(): Promise<void>

Private findTabArea

  • findTabArea(event?: Event): undefined | "main" | "top" | "left" | "right" | "bottom"

Private findTitleIndex

  • findTitleIndex(tabBar: TabBar<Widget>, event?: Event): number
  • Finds the index of the selected title from the tab-bar.

    Parameters

    • tabBar: TabBar<Widget>
    • Optional event: Event

    Returns number

    the index of the selected title if it is available in the tab-bar, else returns the index of currently-selected title.

Protected handlePreferenceChange

Protected initResourceContextKeys

  • initResourceContextKeys(): void

Private isElectron

  • isElectron(): boolean

onStart

  • onStart(): void

onStop

  • onStop(): void

onWillStop

  • onWillStop(): undefined | true

Protected openAbout

  • openAbout(): Promise<void>

registerColors

registerCommands

Protected registerCtrlWHandling

  • registerCtrlWHandling(): void
  • registers event listener which make sure that window doesn't get closed if CMD/CTRL W is pressed. Too many users have that in their muscle memory. Chrome doesn't let us rebind or prevent default the keybinding, so this at least doesn't close the window immediately.

    Returns void

registerKeybindings

registerMenus

Protected selectColorTheme

  • selectColorTheme(): void

Protected selectIconTheme

  • selectIconTheme(): void

Private toggleMaximized

  • toggleMaximized(event?: Event): void

Protected updateStyles

  • updateStyles(): void

Protected updateThemeFromPreference

  • updateThemeFromPreference(preferenceName: "workbench.colorTheme" | "workbench.iconTheme"): void

Protected updateThemePreference

  • updateThemePreference(preferenceName: "workbench.colorTheme" | "workbench.iconTheme"): void