A single extension codebase is used for both the code hub and the dashboard widget. The layout & behavior of the extension display changes slightly based on if the extension is running as a dashboard widget, or as a code hub page. It does this with the following check on the initialization of the extension:
This is not an officially supported means for determining context, and could change in a future release. This needs to be updated to something officially supported by VSTS.
A single extension codebase is used for both the code hub and the dashboard widget. The layout & behavior of the extension display changes slightly based on if the extension is running as a dashboard widget, or as a code hub page. It does this with the following check on the initialization of the extension:
context.getPageContext().hubsContext.selectedHubId.startsWith("ms.vss-dashboards-web");
This is not an officially supported means for determining context, and could change in a future release. This needs to be updated to something officially supported by VSTS.