mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-14 17:22:20 -05:00
don't show error message if cancelling out of import project connection picker (#11050)
This commit is contained in:
@@ -571,8 +571,12 @@ export class ProjectsController {
|
||||
model.database = profile.databaseName;
|
||||
}
|
||||
else {
|
||||
const connectionId = (await this.apiWrapper.openConnectionDialog()).connectionId;
|
||||
const connection = await this.apiWrapper.openConnectionDialog();
|
||||
if (!connection) {
|
||||
return;
|
||||
}
|
||||
|
||||
const connectionId = connection.connectionId;
|
||||
const databaseList = await this.apiWrapper.listDatabases(connectionId);
|
||||
const database = (await this.apiWrapper.showQuickPick(databaseList.map(dbName => { return { label: dbName }; })))?.label;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user