Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PreferenceServiceImpl

Hierarchy

  • PreferenceServiceImpl

Implements

Index

Properties

Protected Readonly _ready

_ready: Deferred<void> = new Deferred<void>()

Protected Readonly configurations

configurations: PreferenceConfigurations

Readonly onPreferenceChanged

onPreferenceChanged: Event<PreferenceChange> = this.onPreferenceChangedEmitter.event

Protected Readonly onPreferenceChangedEmitter

onPreferenceChangedEmitter: Emitter<PreferenceChange> = new Emitter<PreferenceChange>()

Readonly onPreferencesChanged

onPreferencesChanged: Event<PreferenceChanges> = this.onPreferencesChangedEmitter.event

Protected Readonly onPreferencesChangedEmitter

onPreferencesChangedEmitter: Emitter<PreferenceChanges> = new Emitter<PreferenceChanges>()

Protected Readonly preferenceOverrideService

preferenceOverrideService: PreferenceLanguageOverrideService

Protected Readonly preferenceProviders

preferenceProviders: Map<PreferenceScope, PreferenceProvider> = new Map<PreferenceScope, PreferenceProvider>()

Protected Readonly providerProvider

providerProvider: PreferenceProviderProvider

Protected Readonly schema

Protected Readonly toDispose

toDispose: DisposableCollection = new DisposableCollection(this.onPreferenceChangedEmitter, this.onPreferencesChangedEmitter)

Accessors

ready

  • get ready(): Promise<void>

Methods

dispose

  • dispose(): void

Protected doGet

  • doGet<T>(preferenceName: string, defaultValue?: T, resourceUri?: undefined | string): T | undefined

Protected doHas

  • doHas(preferenceName: string, resourceUri?: undefined | string): boolean

Protected doInspectInScope

  • doInspectInScope<T>(preferenceName: string, scope: PreferenceScope, resourceUri?: undefined | string): T | undefined

Protected doResolve

get

  • get<T>(preferenceName: string): T | undefined
  • get<T>(preferenceName: string, defaultValue: T): T
  • get<T>(preferenceName: string, defaultValue: T, resourceUri: string): T
  • get<T>(preferenceName: string, defaultValue?: T, resourceUri?: undefined | string): T | undefined

Protected getAffectedPreferenceNames

getBoolean

  • getBoolean(preferenceName: string): boolean | undefined
  • getBoolean(preferenceName: string, defaultValue: boolean): boolean
  • getBoolean(preferenceName: string, defaultValue: boolean, resourceUri: string): boolean

getConfigUri

  • getConfigUri(scope: PreferenceScope, resourceUri?: undefined | string, sectionName?: string): URI | undefined

getNumber

  • getNumber(preferenceName: string): number | undefined
  • getNumber(preferenceName: string, defaultValue: number): number
  • getNumber(preferenceName: string, defaultValue: number, resourceUri: string): number

Protected getProvider

Protected getScopedValueFromInspection

Protected getScopesToChange

getString

  • getString(preferenceName: string): string | undefined
  • getString(preferenceName: string, defaultValue: string): string
  • getString(preferenceName: string, defaultValue: string, resourceUri: string): string

has

  • has(preferenceName: string, resourceUri?: undefined | string): boolean

Protected init

  • init(): void

Protected initializeProviders

  • initializeProviders(): Promise<void>

inspect

  • inspect<T>(preferenceName: string, resourceUri?: undefined | string): PreferenceInspection<T> | undefined

Protected inspectInScope

  • inspectInScope<T>(preferenceName: string, scope: PreferenceScope, resourceUri?: undefined | string): T | undefined

overriddenPreferenceName

overridePreferenceName

Protected reconcilePreferences

resolve

set

  • set(preferenceName: string, value: any, scope: PreferenceScope | undefined, resourceUri?: undefined | string): Promise<void>

updateValue

  • updateValue(preferenceName: string, value: any, resourceUri?: undefined | string): Promise<void>