Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Controller

The extension controller.

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 underlying output channel.

    • pkgFile: PackageFile

      The package file.

    Returns Controller

Properties

Private _CONTEXT

_CONTEXT: vscode.ExtensionContext

Private _OUTPUT_CHANNEL

_OUTPUT_CHANNEL: vscode.OutputChannel

Private _PACKAGE_FILE

_PACKAGE_FILE: PackageFile

Private _PROXIES

_PROXIES: TcpProxy[] = []

Private _config

_config: Configuration

Accessors

config

  • Gets the current configuration.

    Returns Configuration

context

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

    Returns vscode.ExtensionContext

outputChannel

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

    Returns OutputChannel

packageFile

  • Gets the underlying file.

    Returns PackageFile

Methods

dispose

  • dispose(): void
  • inheritdoc

    Returns void

Protected disposeOldProxies

  • disposeOldProxies(): void
  • Disposes old proxies.

    Returns void

Protected getProxyEntries

  • Returns all proxy entries.

    Returns ProxyEntryWithPort[]

    The entries.

onActivated

  • onActivated(): void
  • Is invoked after the extension has been activated.

    Returns void

onDeactivate

  • onDeactivate(): void
  • Is invoked when extension is going to be deactivated.

    Returns void

onDidChangeConfiguration

  • onDidChangeConfiguration(): void
  • Event after configuration changed.

    Returns void

Protected reloadConfiguration

  • reloadConfiguration(): void
  • Reloads the configuration.

    Returns void

Protected reloadProxies

  • reloadProxies(): Promise<void>
  • Reloads proxies.

    Returns Promise<void>

Protected showProxyQuickPick

  • showProxyQuickPick(placeHolder: string, action: function, iconResolver?: function): Promise<void>
  • Shows quick picks for the current list of proxies.

    Parameters

    • placeHolder: string

      The placeholder.

    • action: function

      The action to invoke for the selected proxies.

    • Optional iconResolver: function

    Returns Promise<void>

Protected startStop

  • startStop(): Promise<void>
  • Starts / stops proxies.

    Returns Promise<void>

Protected trace

  • trace(): Promise<void>
  • Starts / stops tracing.

    Returns Promise<void>

Generated using TypeDoc