Skip to main content

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

NameType
TSettingsany

Returns

TSettings

Defined in

src/services/extensionSettingsService.ts:8


onUpdated

onUpdated\<TSettings>(callback): void

Subscribe to the settings updated event.

Type parameters

NameType
TSettingsany

Parameters

NameTypeDescription
callback(settings: TSettings) => voidCallback function.

Returns

void

Defined in

src/services/extensionSettingsService.ts:20


save

save\<TSettings>(settings): void

Save the settings of the current package.

Type parameters

NameType
TSettingsany

Parameters

NameTypeDescription
settingsTSettingsSettings to save.

Returns

void

Defined in

src/services/extensionSettingsService.ts:14