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 messageService

messageService: MessageService

Protected Readonly openerService

openerService: OpenerService

Protected Readonly preferenceService

preferenceService: PreferenceService

Protected Readonly preferences

preferences: CorePreferences

Protected Readonly quickOpen

Protected Readonly quickOpenService

quickOpenService: QuickOpenService

Protected Readonly quickView

quickView: QuickViewService

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

Private findTabArea

  • findTabArea(event?: Event): Area | undefined

Private findTitleIndex

  • findTitleIndex(tabBar: TabBar<Widget>, event?: Event): number

Protected initResourceContextKeys

  • initResourceContextKeys(): void

Private isElectron

  • isElectron(): boolean

onStart

  • onStart(): void

onStop

  • onStop(): void

onWillStop

  • onWillStop(): true | undefined

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