Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TerminalFrontendContribution

Hierarchy

  • TerminalFrontendContribution

Implements

  • TerminalService
  • CommandContribution
  • MenuContribution
  • KeybindingContribution
  • TabBarToolbarContribution
  • ColorContribution

Index

Constructors

constructor

Properties

Protected _currentTerminal

_currentTerminal: undefined | TerminalWidget

Protected Readonly contextKeyService

contextKeyService: ContextKeyService

Protected Readonly fileService

fileService: FileService

Protected Readonly labelProvider

labelProvider: LabelProvider

Protected mostRecentlyUsedTerminalEntries

mostRecentlyUsedTerminalEntries: { disposables: DisposableCollection; id: string }[] = []

Readonly onDidChangeCurrentTerminal

onDidChangeCurrentTerminal: Event<undefined | TerminalWidget> = ...

Protected Readonly onDidChangeCurrentTerminalEmitter

onDidChangeCurrentTerminalEmitter: Emitter<undefined | TerminalWidget> = ...

Readonly onDidCreateTerminal

onDidCreateTerminal: Event<TerminalWidget> = ...

Protected Readonly onDidCreateTerminalEmitter

onDidCreateTerminalEmitter: Emitter<TerminalWidget> = ...

Protected Readonly quickInputService

quickInputService: QuickInputService

Protected Readonly selectionService

selectionService: SelectionService

Protected Readonly shell

shell: ApplicationShell

Protected Readonly shellTerminalServer

shellTerminalServer: JsonRpcProxy<IShellTerminalServer>

Protected Readonly storageService

storageService: StorageService

Protected Readonly terminalWatcher

terminalWatcher: TerminalWatcher

Protected Readonly widgetManager

widgetManager: WidgetManager

Protected Readonly workspaceService

workspaceService: WorkspaceService

Accessors

all

currentTerminal

lastUsedTerminal

Methods

activateTerminal

  • activateTerminal(widget: TerminalWidget, widgetOptions?: WidgetOptions): void

getById

getByTerminalId

getDefaultShell

  • getDefaultShell(): Promise<string>

Protected getLastUsedTerminalId

  • getLastUsedTerminalId(): undefined | string

Protected getTerminalRef

Protected init

  • init(): void

newTerminal

open

Protected openActiveWorkspaceTerminal

  • openActiveWorkspaceTerminal(options?: WidgetOptions): Promise<void>

openInTerminal

  • openInTerminal(uri: default): Promise<void>

Protected openTerminal

  • openTerminal(options?: WidgetOptions): Promise<void>

registerColors

  • registerColors(colors: ColorRegistry): void

registerCommands

  • registerCommands(commands: CommandRegistry): void

registerKeybindings

  • registerKeybindings(keybindings: KeybindingRegistry): void

registerMenus

  • registerMenus(menus: MenuModelRegistry): void

registerToolbarItems

  • registerToolbarItems(toolbar: TabBarToolbarRegistry): void

Protected selectTerminalCwd

  • selectTerminalCwd(): Promise<undefined | string>

Protected setCurrentTerminal

Protected setLastUsedTerminal

Protected splitTerminal

  • splitTerminal(widget?: Widget): Promise<void>

Protected updateCurrentTerminal

  • updateCurrentTerminal(): void