I am writing a Visual Studio Extension for Visual Studio 2022 where I just want to Open a Comparison Window just like when you click on a file in the Git Changes view.
I see various classes IWpfDifferenceViewerFactoryService sounds promising but have found zero examples on how to use this class, especially when called from a Command Extension. Same goes for IDifferenceViewer & 2, & 3.
I also see that the VS.Document.OpenAsync class of the Community Toolkit uses the VsShellUtilities class which is another can of worms and doesn't seem to have any Differencing capabilities.
If anyone has any idea how to do this, please let me know. Sorry for the lack of code in my question, but I've googled the heck out of this to no avail.