Skip to main content

Class: VscodeGlobalState

ide/vscode/VscodeGlobalState.VscodeGlobalState

Implements

Constructors

constructor

new VscodeGlobalState(extensionContext)

Parameters

NameType
extensionContextExtensionContext

Defined in

ide/vscode/VscodeGlobalState.ts:10

Methods

get

get<K>(key): { hideInferenceWarning: boolean = false }[K]

Return a value.

Type parameters

NameType
Kextends "hideInferenceWarning"

Parameters

NameType
keyK

Returns

{ hideInferenceWarning: boolean = false }[K]

Implementation of

State.get

Defined in

ide/vscode/VscodeGlobalState.ts:15


set

set<K>(key, value): Thenable<void>

Store a value. The value must be JSON-stringifyable.

Type parameters

NameType
Kextends "hideInferenceWarning"

Parameters

NameType
keyK
value{ hideInferenceWarning: boolean = false }[K]

Returns

Thenable<void>

Implementation of

State.set

Defined in

ide/vscode/VscodeGlobalState.ts:19