Interface: IPackageSettingsService
services.IPackageSettingsService
Service injected into the package context to get/set the settings of the current package.
Table of contents
Methods
Methods
get
▸ get\<TSettings>(): TSettings
Get the settings of the current package.
Type parameters
| Name | Type | 
|---|---|
| TSettings | any | 
Returns
TSettings
Defined in
src/services/extensionSettingsService.ts:8
onUpdated
▸ onUpdated\<TSettings>(callback): void
Subscribe to the settings updated event.
Type parameters
| Name | Type | 
|---|---|
| TSettings | any | 
Parameters
| Name | Type | Description | 
|---|---|---|
| callback | ( settings:TSettings) =>void | Callback function. | 
Returns
void
Defined in
src/services/extensionSettingsService.ts:20
save
▸ save\<TSettings>(settings): void
Save the settings of the current package.
Type parameters
| Name | Type | 
|---|---|
| TSettings | any | 
Parameters
| Name | Type | Description | 
|---|---|---|
| settings | TSettings | Settings to save. | 
Returns
void