Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ViewContextKeyService

Hierarchy

  • ViewContextKeyService

Index

Constructors

constructor

Properties

Protected _activePanel

_activePanel: ContextKey<string>

Protected _activeViewlet

_activeViewlet: ContextKey<string>

Protected _focusedView

_focusedView: ContextKey<string>

Protected _view

_view: ContextKey<string>

Protected _viewItem

_viewItem: ContextKey<string>

Protected Readonly contextKeyService

contextKeyService: ContextKeyService

Accessors

activePanel

  • get activePanel(): ContextKey<string>
  • Panel is a tab in the bottom area in VS Code. Active means visible in this context.

    In VS Code there can be only one visible panel at any time. It is not true for Theia, since views can be layed-out again to different areas. So only last visible view will be an active panel.

    Returns ContextKey<string>

activeViewlet

  • get activeViewlet(): ContextKey<string>
  • Viewlet is a tab in the left area in VS Code. Active means visible in this context.

    In VS Code there can be only one visible viewlet at any time. It is not true for Theia, since views can be layed-out again to different areas. So only last visible view will be an active viewlet.

    Returns ContextKey<string>

focusedView

  • get focusedView(): ContextKey<string>

view

  • get view(): ContextKey<string>

viewItem

  • get viewItem(): ContextKey<string>

Methods

Protected init

  • init(): void

match

  • match(expression: undefined | string): boolean

with

  • with<T>(input: { view?: string; viewItem?: string }, cb: () => T): T