-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
align max listeners check with VS Code extensions' expectations #7508
Conversation
I have not time to test it myself yet, I will do later today if no one does it before. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@akosyakov
I don't see the warning at starting Theia
now, but I got it after using Peek
widget and switching between editors:
I'll try at debugging as I mentioned here #7506 (review)
Using these changes I can not reproduce the use case described here #7506 (review) |
@RomanNikitenko about |
ok, I found a pretty serious memory leak: There is a problem that I'm going to dispose this event on first dispose. If we break some clients they should be fixed then. cc @svenefftinge @AlexTugarev |
Yes, I can reproduce it. I had about 10 open editors then went to |
c85a1d9
to
be2bc5d
Compare
@akosyakov |
@RomanNikitenko i think you stumbled over #6733 |
…tions Signed-off-by: Anton Kosyakov <[email protected]>
Signed-off-by: Anton Kosyakov <[email protected]>
be2bc5d
to
2bb5dd9
Compare
…closures Signed-off-by: Anton Kosyakov <[email protected]>
Leaking editors should be fixed by removing custom closures on editor dispose. They used to capture an editor instance. One can verify by:
|
@RomanNikitenko Could you check again please? I've fixed leaking editors. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested using this way
I can not reproduce it after update!
@RomaNikitenko sometimes widgets are hold temporarily by some contribution, for instance, the toolbar holds a reference to latest current widget. But it is not a real leak, since a reference gets removed when another widget becomes current. |
agree, I had the same idea (reference to latest editor widget) when faced with it |
What it does
Since we support multi root workspaces and VS Code extensions we started seeing many false positive leaking emitters. This PR addresses it in similar approach as VS Code does:
How to test
Review checklist
Reminder for reviewers