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

Pass the old new TextDocument on the DocumentChanged event #333

Merged
merged 1 commit into from
Apr 27, 2023

Conversation

danipen
Copy link
Collaborator

@danipen danipen commented Apr 27, 2023

Sometimes one requires to subscribe to events existing inside the TextDocument and maybe you're interested in unsubscribing the events in the old document before subscribing to the events in the new document.

For that purpose, I just extended the EventArgs used for the DocumentChanged event to pass the old document and the new document.

@danipen danipen requested a review from Gillibald April 27, 2023 08:33
@danipen danipen merged commit 2109e29 into master Apr 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants