watch the resource

This commit is contained in:
Sandeep Somavarapu
2019-07-01 02:21:21 +02:00
parent f2b5df153e
commit 3e2d5e5b94
2 changed files with 2 additions and 0 deletions

View File

@@ -40,6 +40,7 @@ export class UserConfiguration extends Disposable {
this.parser = new ConfigurationModelParser(this.userSettingsResource.toString(), this.scopes);
this.reloadConfigurationScheduler = this._register(new RunOnceScheduler(() => this.reload().then(configurationModel => this._onDidChangeConfiguration.fire(configurationModel)), 50));
this._register(this.fileService.watch(this.userSettingsResource));
this._register(Event.filter(this.fileService.onFileChanges, e => e.contains(this.userSettingsResource))(() => this.reloadConfigurationScheduler.schedule()));
}