Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AbstractResourcePreferenceProvider Abstract

Hierarchy

Index

Constructors

Properties

_fileExists: boolean = false
configurations: PreferenceConfigurations
fileService: FileService
loading: Deferred<void> = ...
onDidChangeValidityEmitter: Emitter<boolean> = ...
preferences: Record<string, any> = {}
schemaProvider: PreferenceSchemaProvider
transaction: undefined | PreferenceTransaction
transactionFactory: PreferenceTransactionFactory

Accessors

  • set fileExists(exists: boolean): void
  • get onDidChangeValidity(): Event<boolean>
  • get valid(): boolean

Methods

  • contains(resourceUri: undefined | string): boolean
  • doInit(): Promise<void>
  • doSetPreference(key: string, path: string[], value: unknown): Promise<boolean>
  • getConfigUri(): URI
  • getConfigUri(resourceUri: undefined | string): undefined | URI
  • getPath(preferenceName: string): undefined | string[]
  • getPreferences(resourceUri?: string): {}
  • getScope(): PreferenceScope
  • getUri(): URI
  • handlePreferenceChanges(newPrefs: {}): void
  • init(): void
  • parse(content: string): any
  • readPreferencesFromContent(content: string): void
  • readPreferencesFromFile(): Promise<void>
  • reset(): void
  • setPreference(key: string, value: any, resourceUri?: string): Promise<boolean>