I want to visualize the query results in SQL Server Management Studio.
For that I need access to the data of a query result (the underlying data, that is being displayed).
I have created an extension for SSMS, using this guide: https://stackoverflow.com/a/55661807/2972
But, the documentation for extension development is quite poor. I have tried to discover classes in some Interop namespaces, e.g.: https://docs.microsoft.com/en-us/dotnet/api/microsoft.visualstudio.textmanager.interop?view=visualstudiosdk-2019
But didn't find something useful.
How do I get a reference to the query results themselves in SSMS from a Command extension?
And in general, how do I discover which "service type" is behind an "element" of the IDE?