mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-18 17:22:45 -05:00
Adds welcome message for database projects (#10820)
* Removing duplicate Import command piping * Adding welcome message + buttons * Adding welcome button to Import * Correcting typos
This commit is contained in:
@@ -518,6 +518,19 @@ export class ProjectsController {
|
||||
model.serverId = profile.id;
|
||||
model.database = profile.databaseName;
|
||||
}
|
||||
else {
|
||||
const connectionId = (await this.apiWrapper.openConnectionDialog()).connectionId;
|
||||
|
||||
const databaseList = await this.apiWrapper.listDatabases(connectionId);
|
||||
const database = (await this.apiWrapper.showQuickPick(databaseList.map(dbName => { return { label: dbName }; })))?.label;
|
||||
|
||||
if (!database) {
|
||||
throw new Error(constants.databaseSelectionRequired);
|
||||
}
|
||||
|
||||
model.serverId = connectionId;
|
||||
model.database = database;
|
||||
}
|
||||
|
||||
// Get project name
|
||||
let newProjName = await this.getProjectName(model.database);
|
||||
|
||||
Reference in New Issue
Block a user