Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Controller

The controller of that extension.

Hierarchy

  • Controller

Implements

  • Disposable

Index

Constructors

constructor

  • new Controller(context: vscode.ExtensionContext, outputChannel: vscode.OutputChannel, pkgFile: PackageFile): Controller
  • Initializes a new instance of that class.

    Parameters

    • context: vscode.ExtensionContext

      The underlying extension context.

    • outputChannel: vscode.OutputChannel

      The global output channel to use.

    • pkgFile: PackageFile

      The package file of that extension.

    Returns Controller

Properties

Protected _CONTEXT

_CONTEXT: vscode.ExtensionContext

Stores the underlying extension context.

Protected _OUTPUT_CHANNEL

_OUTPUT_CHANNEL: vscode.OutputChannel

Stores the global output channel.

Protected _PACKAGE_FILE

_PACKAGE_FILE: PackageFile

Stores the package file of that extension.

Protected _config

_config: Configuration

The current configuration.

Protected _host

_host: ApiHost

The current host.

Protected _whiteboard

Stores the current whiteboard (repository).

Protected _workspaceState

_workspaceState: Object

Stores the object that shares data workspace wide.

Accessors

config

context

  • get context(): vscode.ExtensionContext
  • Gets the extension context.

    Returns vscode.ExtensionContext

name

  • get name(): string
  • Get the name that represents that machine.

    Returns string

outputChannel

  • get outputChannel(): vscode.OutputChannel
  • Gets the global output channel.

    Returns vscode.OutputChannel

packageFile

whiteboard

workspaceState

  • get workspaceState(): Object
  • Gets the object that shares data workspace wide.

    Returns Object

Methods

dispose

  • dispose(): void

getGlobals

  • getGlobals(): any
  • Returns a copy of the global data from the settings.

    Returns any

    The global data from the settings.

log

onActivated

  • onActivated(): void

onDeactivate

  • onDeactivate(): void

onDidChangeConfiguration

  • onDidChangeConfiguration(): void

reloadConfiguration

  • reloadConfiguration(): void

Protected showNewVersionPopup

  • showNewVersionPopup(): void

start

stop

  • stop(): PromiseLike<boolean>
  • Stops the host.

    Returns PromiseLike<boolean>

    The promise.

toggleHostState

  • toggleHostState(): PromiseLike<boolean>
  • Toggle the state of the current host.

    Returns PromiseLike<boolean>

    The promise.

Generated using TypeDoc