fix caching issue with connection profile (#20739)

This commit is contained in:
brian-harris
2022-10-12 09:45:31 -07:00
committed by GitHub
parent 636efa841d
commit 03fcaf837c

View File

@@ -113,21 +113,23 @@ function getConnectionProfile(
azureResourceId: string, azureResourceId: string,
userName: string, userName: string,
password: string): azdata.IConnectionProfile { password: string): azdata.IConnectionProfile {
const connectId = generateGuid();
return { return {
serverName: serverName, serverName: serverName,
id: generateGuid(), id: connectId,
connectionName: undefined, connectionName: connectId,
azureResourceId: azureResourceId, azureResourceId: azureResourceId,
userName: userName, userName: userName,
password: password, password: password,
authenticationType: azdata.connection.AuthenticationType.SqlLogin, authenticationType: azdata.connection.AuthenticationType.SqlLogin,
savePassword: false, savePassword: false,
groupFullName: '', groupFullName: connectId,
groupId: '', groupId: connectId,
providerName: 'MSSQL', providerName: 'MSSQL',
saveProfile: false, saveProfile: false,
options: { options: {
conectionName: '', conectionName: connectId,
server: serverName, server: serverName,
authenticationType: azdata.connection.AuthenticationType.SqlLogin, authenticationType: azdata.connection.AuthenticationType.SqlLogin,
user: userName, user: userName,