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

Clean up diff editor reference when no longer in use #230713

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

samirzubi-db
Copy link

@samirzubi-db samirzubi-db commented Oct 7, 2024

I have found out that the monaco-editor diff editor was not releasing the memory when it was removed from the DOM.
With further testing I narrowed down the issue to the diffEditorWidget.ts file where the codeEditorService is keeping a reference to the diff editor.

I've tested the proposed solution by applying a npm patch tomonaco-editor. And running the code mentioned in the issue.

Fixes: microsoft/monaco-editor#4659

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] Memory leaking when disposing Diff editor
3 participants