Skip to main content

Interface: ExtensionContext

Properties

extensionUri

readonly extensionUri: Uri

The uri of the directory containing the extension.

Source

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


secrets

readonly secrets: SecretStorage

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

Source

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


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.

Source

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


subscriptions

readonly subscriptions: object[]

Source

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