show proper message when extension is not installed for a connection provider (#19377)

* show extension not installed error

* extension provider mapping

* fix tests
This commit is contained in:
Alan Ren
2022-05-15 13:52:28 -07:00
committed by GitHub
parent aee14c8170
commit 3b74d7843f
5 changed files with 60 additions and 10 deletions

View File

@@ -20,6 +20,16 @@ export const clientCapabilities = {
hostVersion: HOST_VERSION
};
/**
* The map containing the connection provider names and the owning extensions.
* This is to workaround the issue that we don't have the ability to store and query the information from extension gallery.
*/
export const ConnectionProviderAndExtensionMap = new Map<string, string>([
['PGSQL', 'microsoft.azuredatastudio-postgresql'],
['KUSTO', 'microsoft.kusto'],
['LOGANALYTICS', 'microsoft.azuremonitor']
]);
/**
* The connection string options for connection provider.
*/