Skip to content

Commit

Permalink
Change preview buffer content type to inert on close to unhook langua…
Browse files Browse the repository at this point in the history
…ge features
  • Loading branch information
dibarbet committed Oct 17, 2024
1 parent cb0f932 commit 785d7f8
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -709,6 +709,10 @@ private async ValueTask<IDifferenceViewerPreview<TDifferenceViewer>> CreateNewDi

rightWorkspace?.Dispose();
rightWorkspace = null;

var inertContentType = _contentTypeRegistryService.GetContentType(StandardContentTypeNames.Inert);
originalBuffer.ChangeContentType(inertContentType, null);
changedBuffer.ChangeContentType(inertContentType, null);
};

return CreateDifferenceViewerPreview(diffViewer);
Expand Down

0 comments on commit 785d7f8

Please sign in to comment.