Skip to main content

Interface: ExtensionContext

Properties

extensionUri

readonly extensionUri: Uri

The uri of the directory containing the extension.

Defined in

packages/extension-api/src/extension-api.d.ts:197


secrets

readonly secrets: SecretStorage

A storage utility for secrets. Secrets are persisted across reloads.

Defined in

packages/extension-api/src/extension-api.d.ts:202


storagePath

readonly storagePath: string

An absolute file path in which the extension can store state. The directory might not exist on disk and creation is up to the extension.

Defined in

packages/extension-api/src/extension-api.d.ts:192


subscriptions

readonly subscriptions: object[]

Defined in

packages/extension-api/src/extension-api.d.ts:185