Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface PluginContext

A plug-in context is a collection of utilities private to a plug-in.

An instance of a PluginContext is provided as the first parameter to the start of a plug-in.

Hierarchy

  • PluginContext

Index

Properties

extensionPath

extensionPath: string

The absolute file path of the directory containing the extension.

subscriptions

subscriptions: object[]

An array to which disposables can be added. When this extension is deactivated the disposables will be disposed.

Methods

asAbsolutePath

  • asAbsolutePath(relativePath: string): string
  • Get the absolute path of a resource contained in the extension.

    Parameters

    • relativePath: string

      A relative path to a resource contained in the extension.

    Returns string

    The absolute path of the resource.