Refactor connection store (#5024)

* various clean ups

* formatting

* remove linting

* formatting

* IConfigurationService is even better

* messing with connection config tests

* update tests

* formatting

* foramtting

* remove unused code

* add more tests

* working through tests

* formatting

* more factoring of connection store and increase code coverage

* formatting

* fix tests

* change use of state service to storage service

* remove unused files

* fix strict null errors

* formatting
This commit is contained in:
Anthony Dresser
2019-04-30 13:32:32 -07:00
committed by GitHub
parent 44a2d009c0
commit 0f12d15020
19 changed files with 875 additions and 1016 deletions

View File

@@ -9,19 +9,9 @@ import { localize } from 'vs/nls';
export const sqlConfigSectionName = 'sql';
export const outputChannelName = 'MSSQL';
export const connectionsArrayName = 'datasource.connections';
export const connectionGroupsArrayName = 'datasource.connectionGroups';
/**Unsaved connections Id */
export const unsavedGroupId = 'unsaved';
/* Memento constants */
export const activeConnections = 'ACTIVE_CONNECTIONS';
export const recentConnections = 'RECENT_CONNECTIONS';
export const capabilitiesOptions = 'OPTIONS_METADATA';
export const configMaxRecentConnections = 'maxRecentConnections';
export const mssqlProviderName = 'MSSQL';
export const anyProviderName = '*';
export const connectionProviderContextKey = 'connectionProvider';
@@ -40,3 +30,5 @@ export const azureMFA = 'AzureMFA';
/* CMS constants */
export const cmsProviderName = 'MSSQL-CMS';
export const cmsProviderDisplayName = localize('constants.cmsProviderDisplayName', 'Microsoft SQL Server (CMS)');
export const UNSAVED_GROUP_ID = 'unsaved';