Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix FileResource not adding event listener to the disposable collection #13880

Merged

Conversation

Hanksha
Copy link
Contributor

@Hanksha Hanksha commented Jul 3, 2024

What it does

This PR fixes the constructor of FileResource so the listener of this.fileService.onDidChangeFileSystemProviderReadOnlyMessage is properly disposed when the resource is disposed.

Fixes #13877

How to test

You can run the playwright test in examples\playwright\src\tests\theia-application-shell.test.ts. Check the logs, you should not see any emitter memory leak warning related to onDidChangeFileSystemProviderReadOnlyMessage event.

Review checklist

Reminder for reviewers

Signed-off-by: Vivien Jovet <vivien.jovet@torocloud.com>
@JonasHelming
Copy link
Contributor

@tsmaeder I think you can merge this one!

@tsmaeder tsmaeder merged commit 48cb2b8 into eclipse-theia:master Jul 10, 2024
11 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

FileResource causes emitter memory leak
4 participants