Some SSMS users change caption text to not include the server and db which the current implementation relies on:
I can implement the code used from SSMS-EnvTabs to resolve the tab’s IVsWindowFrame, then read the query editor DocView.m_connection for DataSource and Database. If that fails only then fall back to matching the tab caption.
Some SSMS users change caption text to not include the server and db which the current implementation relies on:
I can implement the code used from SSMS-EnvTabs to resolve the tab’s IVsWindowFrame, then read the query editor DocView.m_connection for DataSource and Database. If that fails only then fall back to matching the tab caption.