@codingame/monaco-vscode-configuration-service-override 1.82.6 → 1.83.0-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-configuration-service-override",
3
- "version": "1.82.6",
3
+ "version": "1.83.0-next.0",
4
4
  "keywords": [],
5
5
  "author": {
6
6
  "name": "CodinGame",
@@ -18,7 +18,7 @@
18
18
  "module": "index.js",
19
19
  "types": "index.d.ts",
20
20
  "dependencies": {
21
- "vscode": "npm:@codingame/monaco-vscode-api@1.82.6",
22
- "monaco-editor": "0.43.0"
21
+ "vscode": "npm:@codingame/monaco-vscode-api@1.83.0-next.0",
22
+ "monaco-editor": "0.44.0"
23
23
  }
24
24
  }
@@ -363,8 +363,8 @@ class FileServiceBasedRemoteUserConfiguration extends Disposable {
363
363
  this.uriIdentityService = uriIdentityService;
364
364
  this._onDidChangeConfiguration = this._register(( (new Emitter())));
365
365
  this.onDidChangeConfiguration = this._onDidChangeConfiguration.event;
366
- this.fileWatcherDisposable = Disposable.None;
367
- this.directoryWatcherDisposable = Disposable.None;
366
+ this.fileWatcherDisposable = this._register(( (new MutableDisposable())));
367
+ this.directoryWatcherDisposable = this._register(( (new MutableDisposable())));
368
368
  this.parser = ( (new ConfigurationModelParser( (this.configurationResource.toString()))));
369
369
  this.parseOptions = configurationParseOptions;
370
370
  this._register(fileService.onDidFilesChange(e => this.handleFileChangesEvent(e)));
@@ -379,19 +379,17 @@ class FileServiceBasedRemoteUserConfiguration extends Disposable {
379
379
  }));
380
380
  }
381
381
  watchResource() {
382
- this.fileWatcherDisposable = this.fileService.watch(this.configurationResource);
382
+ this.fileWatcherDisposable.value = this.fileService.watch(this.configurationResource);
383
383
  }
384
384
  stopWatchingResource() {
385
- this.fileWatcherDisposable.dispose();
386
- this.fileWatcherDisposable = Disposable.None;
385
+ this.fileWatcherDisposable.value = undefined;
387
386
  }
388
387
  watchDirectory() {
389
388
  const directory = this.uriIdentityService.extUri.dirname(this.configurationResource);
390
- this.directoryWatcherDisposable = this.fileService.watch(directory);
389
+ this.directoryWatcherDisposable.value = this.fileService.watch(directory);
391
390
  }
392
391
  stopWatchingDirectory() {
393
- this.directoryWatcherDisposable.dispose();
394
- this.directoryWatcherDisposable = Disposable.None;
392
+ this.directoryWatcherDisposable.value = undefined;
395
393
  }
396
394
  async initialize() {
397
395
  const exists = await this.fileService.exists(this.configurationResource);