Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GitDiffContribution

Hierarchy

Implements

  • TabBarToolbarContribution

Index

Constructors

constructor

  • new GitDiffContribution(selectionService: SelectionService, widgetManager: WidgetManager, app: FrontendApplication, quickOpenService: GitQuickOpenService, fileService: FileService, openerService: OpenerService, notifications: MessageService, scmService: ScmService): GitDiffContribution

Properties

Protected Readonly app

app: FrontendApplication

Protected Readonly commandRegistry

commandRegistry: CommandRegistry

Protected Readonly editorManager

editorManager: EditorManager

Protected Readonly fileNavigatorContribution

fileNavigatorContribution: FileNavigatorContribution

Protected Readonly fileService

fileService: FileService

Protected Readonly notifications

notifications: MessageService

Protected openerService

openerService: OpenerService

Protected Readonly options

options: ViewContributionOptions

Protected Readonly quickOpenService

quickOpenService: GitQuickOpenService

Protected Readonly quickView

quickView: QuickViewService

Protected Readonly scmService

scmService: ScmService

Protected Readonly selectionService

selectionService: SelectionService

Protected Readonly shell

shell: ApplicationShell

Optional Readonly toggleCommand

toggleCommand: Command

Protected Readonly widgetManager

widgetManager: WidgetManager

Protected Readonly workspaceService

workspaceService: WorkspaceService

Accessors

defaultViewOptions

  • get defaultViewOptions(): WidgetOptions
  • Returns WidgetOptions

viewId

  • get viewId(): string
  • Returns string

viewLabel

  • get viewLabel(): string
  • Returns string

widget

  • get widget(): Promise<T>
  • Returns Promise<T>

Methods

closeView

  • Returns Promise<undefined | GitDiffWidget>

Protected findGitRepository

  • findGitRepository(uri: default): undefined | Repository

Protected newWorkspaceRootUriAwareCommandHandler

  • newWorkspaceRootUriAwareCommandHandler(handler: UriCommandHandler<default>): WorkspaceRootUriAwareCommandHandler

openView

  • openView(args?: Partial<OpenViewArguments>): Promise<GitDiffWidget>
  • Parameters

    • Optional args: Partial<OpenViewArguments>

    Returns Promise<GitDiffWidget>

registerCommands

  • registerCommands(commands: CommandRegistry): void

registerKeybindings

  • registerKeybindings(keybindings: KeybindingRegistry): void
  • Parameters

    • keybindings: KeybindingRegistry

    Returns void

registerMenus

  • registerMenus(menus: MenuModelRegistry): void

registerToolbarItems

  • registerToolbarItems(registry: TabBarToolbarRegistry): void

showWidget

toggleView

  • Returns Promise<GitDiffWidget>

tryGetWidget

  • Returns undefined | GitDiffWidget