Add changes for flavor selection (#8419)

* Add changes for flavor selection

* Use getDefaultProviderId method

* Update default engine user setting description

* Add back check for codeEditor

* Add test for multiple providers

* Removing extra merge line

* Add an attribute to ConnectionProviderProperties for language flavor

Adding a boolean property to ConnectionProviderProperties for providers that are language flavors. When it is set to true, the provider will be part of drop down for changing SQL language flavor.

* Update variable name

* Put logic for removing CMS at one place and remove flag for flavor provider

* Using keys instead of entries

Using Object.keys instead of entries as doing [0] can be error prone if no provider matches.

* Adding logic to check from params

* Updating variable names

* Rename dedup map

* Fix action
This commit is contained in:
swjain23
2019-12-05 15:28:35 -08:00
committed by GitHub
parent 0d9353d99e
commit 0bf4790a64
10 changed files with 133 additions and 40 deletions

View File

@@ -14,6 +14,7 @@ import { mssqlProviderName } from 'sql/platform/connection/common/constants';
export class TestCapabilitiesService implements ICapabilitiesService {
private pgsqlProviderName = 'PGSQL';
public _serviceBrand: undefined;
public capabilities: { [id: string]: ProviderFeatures } = {};
@@ -99,7 +100,13 @@ export class TestCapabilitiesService implements ICapabilitiesService {
displayName: 'MSSQL',
connectionOptions: connectionProvider,
};
let pgSQLCapabilities = {
providerId: this.pgsqlProviderName,
displayName: this.pgsqlProviderName,
connectionOptions: connectionProvider,
};
this.capabilities[mssqlProviderName] = { connection: msSQLCapabilities };
this.capabilities[this.pgsqlProviderName] = { connection: pgSQLCapabilities };
}
/**