Skip to content

Commit

Permalink
Fix FileResource not adding event listener to the disposable collecti…
Browse files Browse the repository at this point in the history
…on (#13880)

Signed-off-by: Vivien Jovet <vivien.jovet@torocloud.com>
Co-authored-by: Vivien Jovet <vivien.jovet@torocloud.com>
  • Loading branch information
Hanksha and vjovet-toro-cloud committed Jul 10, 2024
1 parent 10b156c commit 48cb2b8
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 48cb2b8

Please sign in to comment.