Class: VscodeGlobalState
ide/vscode/VscodeGlobalState.VscodeGlobalState
Implements
Constructors
constructor
• new VscodeGlobalState(extensionContext)
Parameters
| Name | Type |
|---|---|
extensionContext | ExtensionContext |
Defined in
ide/vscode/VscodeGlobalState.ts:10
Methods
get
▸ get<K>(key): { hideInferenceWarning: boolean = false }[K]
Return a value.
Type parameters
| Name | Type |
|---|---|
K | extends "hideInferenceWarning" |
Parameters
| Name | Type |
|---|---|
key | K |
Returns
{ hideInferenceWarning: boolean = false }[K]
Implementation of
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
| Name | Type |
|---|---|
K | extends "hideInferenceWarning" |
Parameters
| Name | Type |
|---|---|
key | K |
value | { hideInferenceWarning: boolean = false }[K] |
Returns
Thenable<void>
Implementation of
Defined in
ide/vscode/VscodeGlobalState.ts:19