mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-31 01:25:38 -05:00
Add option to save Publish profile in VScode (#23067)
* Publish profile save changes for VSCode * Fix publish settings * Fix publish settings * Address comments * Address comments * Address comments * Address comment
This commit is contained in:
@@ -21,6 +21,7 @@ import { ISqlProjectPublishSettings } from '../models/deploy/publishSettings';
|
||||
export async function getPublishDatabaseSettings(project: ISqlProject, promptForConnection: boolean = true): Promise<ISqlProjectPublishSettings | undefined> {
|
||||
|
||||
// 1. Select publish settings file (optional)
|
||||
let publishProfileUri;
|
||||
// Create custom quickpick so we can control stuff like displaying the loading indicator
|
||||
const quickPick = vscode.window.createQuickPick();
|
||||
quickPick.items = [{ label: constants.dontUseProfile }, { label: constants.browseForProfileWithIcon }];
|
||||
@@ -42,7 +43,7 @@ export async function getPublishDatabaseSettings(project: ISqlProject, promptFor
|
||||
// If the user cancels out of the file picker then just return and let them choose another option
|
||||
return;
|
||||
}
|
||||
let publishProfileUri = locations[0];
|
||||
publishProfileUri = locations[0];
|
||||
try {
|
||||
// Show loading state while reading profile
|
||||
quickPick.busy = true;
|
||||
@@ -214,7 +215,7 @@ export async function getPublishDatabaseSettings(project: ISqlProject, promptFor
|
||||
connectionUri: connectionUri || '',
|
||||
sqlCmdVariables: sqlCmdVariables,
|
||||
deploymentOptions: publishProfile?.options ?? await getDefaultPublishDeploymentOptions(project),
|
||||
profileUsed: !!publishProfile
|
||||
publishProfileUri: publishProfileUri
|
||||
};
|
||||
return settings;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user