Skip to main content

Function: setValue()

setValue(key, value, scope?): void

Store a new value for key in the context. This can be used in enablement of command or with the when property. The key should consists of '"extension-id"."actual-key"'.

Parameters

key

string

the key of the key/value pair to be added to the context

value

any

value associated to the key

scope?

"onboarding"

the scope to use to save the value

Returns

void

Defined in

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