Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PreferenceServiceImpl

Hierarchy

  • PreferenceServiceImpl

Implements

Index

Constructors

Properties

_isReady: boolean = false
_ready: Deferred<void> = ...
configurations: PreferenceConfigurations
onPreferenceChanged: Event<PreferenceChange> = ...
onPreferenceChangedEmitter: Emitter<PreferenceChange> = ...
onPreferencesChanged: Event<PreferenceChanges> = ...
onPreferencesChangedEmitter: Emitter<PreferenceChanges> = ...
preferenceOverrideService: PreferenceLanguageOverrideService
preferenceProviders: Map<PreferenceScope, PreferenceProvider> = ...
providerProvider: PreferenceProviderProvider
toDispose: DisposableCollection = ...

Accessors

  • get isReady(): boolean
  • get ready(): Promise<void>

Methods

  • dispose(): void
  • doGet<T>(preferenceName: string, defaultValue?: T, resourceUri?: string): undefined | T
  • doHas(preferenceName: string, resourceUri?: string): boolean
  • doInspectInScope<T>(preferenceName: string, scope: PreferenceScope, resourceUri?: string): undefined | T
  • get<T>(preferenceName: string): undefined | T
  • get<T>(preferenceName: string, defaultValue: T): T
  • get<T>(preferenceName: string, defaultValue: T, resourceUri: string): T
  • get<T>(preferenceName: string, defaultValue?: T, resourceUri?: string): undefined | T
  • getBoolean(preferenceName: string): undefined | boolean
  • getBoolean(preferenceName: string, defaultValue: boolean): boolean
  • getBoolean(preferenceName: string, defaultValue: boolean, resourceUri: string): boolean
  • getConfigUri(scope: PreferenceScope, resourceUri?: string, sectionName?: string): undefined | URI
  • getNumber(preferenceName: string): undefined | number
  • getNumber(preferenceName: string, defaultValue: number): number
  • getNumber(preferenceName: string, defaultValue: number, resourceUri: string): number
  • getString(preferenceName: string): undefined | string
  • getString(preferenceName: string, defaultValue: string): string
  • getString(preferenceName: string, defaultValue: string, resourceUri: string): string
  • has(preferenceName: string, resourceUri?: string): boolean
  • init(): void
  • initializeProviders(): Promise<void>
  • inspect<T>(preferenceName: string, resourceUri?: string, forceLanguageOverride?: boolean): undefined | PreferenceInspection<T>
  • inspectInScope<T>(preferenceName: string, scope: PreferenceScope, resourceUri?: string, forceLanguageOverride?: boolean): undefined | T
  • set(preferenceName: string, value: any, scope: undefined | PreferenceScope, resourceUri?: string): Promise<void>
  • updateValue(preferenceName: string, value: any, resourceUri?: string): Promise<void>