mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-22 09:35:37 -05:00
Read server options from publish profile (#21960)
* Read encrypt and trust server certificate * Set hostname in certificate setting * Address comment- open connection dialog if the connection string in publish profile doesn't load a connection, instead of throwing an error.
This commit is contained in:
@@ -89,8 +89,12 @@ async function readConnectionString(xmlDoc: any): Promise<{ connectionId: string
|
||||
if (dataSource.integratedSecurity) {
|
||||
if (azdataApi) {
|
||||
const connectionResult = await utils.getAzdataApi()!.connection.connect(connectionProfile, false, false);
|
||||
utils.throwIfNotConnected(connectionResult);
|
||||
connId = connectionResult.connectionId!;
|
||||
if (!connectionResult.connected) {
|
||||
const connection = await utils.getAzdataApi()!.connection.openConnectionDialog(undefined, connectionProfile);
|
||||
connId = connection.connectionId;
|
||||
} else {
|
||||
connId = connectionResult.connectionId!;
|
||||
}
|
||||
} else {
|
||||
// TODO@chgagnon - hook up VS Code MSSQL
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user