-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Dispose of ITextDocument(s) when closing preview view #75551
Conversation
785d7f8
to
5c40bed
Compare
src/EditorFeatures/Core/Preview/AbstractPreviewFactoryService.cs
Outdated
Show resolved
Hide resolved
src/EditorFeatures/Core/Preview/AbstractPreviewFactoryService.cs
Outdated
Show resolved
Hide resolved
src/EditorFeatures/Core/Preview/AbstractPreviewFactoryService.cs
Outdated
Show resolved
Hide resolved
src/EditorFeatures/Core/Preview/AbstractPreviewFactoryService.cs
Outdated
Show resolved
Hide resolved
After talking with Jason/Kayle offline - we decided to go a different route. Now we instead just dispose of the ITextDocument we create (it is IDisposable already, but we weren't disposing). There is a corresponding change on the LSP client side to ensure the diagnostics state is removed - https://devdiv.visualstudio.com/DevDiv/_git/VSLanguageServerClient/pullrequest/586188 |
@dibarbet Don't forget to change the PR title. |
Resolves #75492
Debugged and verified that the language client now unhooks from these buffers.