Skip to content

Commit

Permalink
Merge pull request #106119 from microsoft/aeschli/103949
Browse files Browse the repository at this point in the history
web: missing settings change events from FileUserDataProvider
  • Loading branch information
sandy081 committed Sep 4, 2020
2 parents 6b660bd + 61842a1 commit e1b1a41
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ export class FileUserDataProvider extends Disposable implements
IFileSystemProviderWithOpenReadWriteCloseCapability,
IFileSystemProviderWithFileReadStreamCapability {

readonly capabilities: FileSystemProviderCapabilities = this.fileSystemProvider.capabilities;
readonly onDidChangeCapabilities: Event<void> = this.fileSystemProvider.onDidChangeCapabilities;

private readonly _onDidChangeFile = this._register(new Emitter<readonly IFileChange[]>());
Expand Down Expand Up @@ -47,6 +46,9 @@ export class FileUserDataProvider extends Disposable implements
this._register(this.fileSystemProvider.watch(this.fileSystemUserDataHome, { recursive: false, excludes: [] }));
this._register(this.fileSystemProvider.onDidChangeFile(e => this.handleFileChanges(e)));
}
get capabilities() {
return this.fileSystemProvider.capabilities;
}

watch(resource: URI, opts: IWatchOptions): IDisposable {
return this.fileSystemProvider.watch(this.toFileSystemResource(resource), opts);
Expand Down

0 comments on commit e1b1a41

Please sign in to comment.