mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -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;
|
model.database = profile.databaseName;
|
||||||
}
|
}
|
||||||
else {
|
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 databaseList = await this.apiWrapper.listDatabases(connectionId);
|
||||||
const database = (await this.apiWrapper.showQuickPick(databaseList.map(dbName => { return { label: dbName }; })))?.label;
|
const database = (await this.apiWrapper.showQuickPick(databaseList.map(dbName => { return { label: dbName }; })))?.label;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user