Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MockPreferenceService

Hierarchy

  • MockPreferenceService

Implements

Index

Constructors

Properties

isReady: true = true
onPreferenceChanged: Event<PreferenceChange> = ...
onPreferencesChanged: Event<PreferenceChanges> = ...
ready: Promise<void> = ...

Methods

  • dispose(): void
  • get<T>(preferenceName: string): undefined | T
  • get<T>(preferenceName: string, defaultValue: T): T
  • get<T>(preferenceName: string, defaultValue: T, resourceUri: string): T
  • inspectInScope<T>(preferenceName: string, scope: PreferenceScope, resourceUri?: string, forceLanguageOverride?: boolean): undefined | T
  • resolve<T>(preferenceName: string, defaultValue?: T, resourceUri?: string): { configUri?: URI; value?: T }
  • set(preferenceName: string, value: any): Promise<void>
  • updateValue(): Promise<void>
  • validate(name: string, value: any): boolean