Skip to content

Commit

Permalink
Fix FileResource not adding event listener to the disposable collection
Browse files Browse the repository at this point in the history
Signed-off-by: Vivien Jovet <vivien.jovet@torocloud.com>
  • Loading branch information
vjovet-toro-cloud committed Jul 3, 2024
1 parent 69b8877 commit 549474d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/filesystem/src/browser/file-resource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,11 @@ export class FileResource implements Resource {
this.updateReadOnly();
}
}));
this.fileService.onDidChangeFileSystemProviderReadOnlyMessage(async e => {
this.toDispose.push(this.fileService.onDidChangeFileSystemProviderReadOnlyMessage(async e => {
if (e.scheme === this.uri.scheme) {
this.updateReadOnly();
}
});
}));
}

protected async updateReadOnly(): Promise<void> {
Expand Down

0 comments on commit 549474d

Please sign in to comment.