Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ExternalTerminalFrontendContribution

Hierarchy

  • ExternalTerminalFrontendContribution

Implements

Index

Properties

Protected Readonly editorManager

editorManager: EditorManager

Protected Readonly envVariablesServer

envVariablesServer: EnvVariablesServer

Protected Readonly externalTerminalPreferences

externalTerminalPreferences: ExternalTerminalPreferenceService

Protected Readonly externalTerminalService

externalTerminalService: ExternalTerminalService

Protected Readonly labelProvider

labelProvider: LabelProvider

Protected Readonly quickPickService

quickPickService: QuickPickService

Protected Readonly workspaceService

workspaceService: WorkspaceService

Methods

Protected openExternalTerminal

  • openExternalTerminal(): Promise<void>
  • Open a native console on the host machine.

    • If multi-root workspace is open, displays a quick pick to let users choose which workspace to spawn the terminal.
    • If only one workspace is open, the terminal spawns at the root of the current workspace.
    • If no workspace is open and there is an active editor, the terminal spawns at the parent folder of that file.
    • If no workspace is open and there are no active editors, the terminal spawns at user home directory.

    Returns Promise<void>

registerCommands

registerKeybindings

Protected selectCwd

  • selectCwd(): Promise<string | undefined>