Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MockPreferenceService

Hierarchy

  • MockPreferenceService

Implements

Index

Constructors

constructor

Properties

Readonly onPreferenceChanged

onPreferenceChanged: Event<PreferenceChange> = new Emitter<PreferenceChange>().event

Readonly onPreferencesChanged

onPreferencesChanged: Event<PreferenceChanges> = new Emitter<PreferenceChanges>().event

ready

ready: Promise<void> = Promise.resolve()

Methods

dispose

  • dispose(): void

get

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

getConfigUri

inspect

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

overriddenPreferenceName

overridePreferenceName

resolve

  • resolve<T>(preferenceName: string, defaultValue?: T, resourceUri?: undefined | string): { configUri?: URI; value?: T }

set

  • set(preferenceName: string, value: any): Promise<void>

updateValue

  • updateValue(): Promise<void>

validate

  • validate(name: string, value: any): boolean