mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
* Correct browse string match * Deduping const
This commit is contained in:
@@ -115,8 +115,7 @@ export const defaultUser = localize('default', "default");
|
|||||||
export const selectProfileToUse = localize('selectProfileToUse', "Select publish profile to load");
|
export const selectProfileToUse = localize('selectProfileToUse', "Select publish profile to load");
|
||||||
export const selectProfile = localize('selectProfile', "Select Profile");
|
export const selectProfile = localize('selectProfile', "Select Profile");
|
||||||
export const dontUseProfile = localize('dontUseProfile', "Don't use profile");
|
export const dontUseProfile = localize('dontUseProfile', "Don't use profile");
|
||||||
export const browseForProfile = localize('browseForProfile', "Browse for profile");
|
export const browseForProfileWithIcon = `$(folder) ${localize('browseForProfile', "Browse for profile")}`;
|
||||||
export const browseForProfileWithIcon = `$(folder) ${browseForProfile}`;
|
|
||||||
export const chooseAction = localize('chooseAction', "Choose action");
|
export const chooseAction = localize('chooseAction', "Choose action");
|
||||||
export const chooseSqlcmdVarsToModify = localize('chooseSqlcmdVarsToModify', "Choose SQLCMD variables to modify");
|
export const chooseSqlcmdVarsToModify = localize('chooseSqlcmdVarsToModify', "Choose SQLCMD variables to modify");
|
||||||
export const enterNewValueForVar = (varName: string) => localize('enterNewValueForVar', "Enter new value for variable '{0}'", varName);
|
export const enterNewValueForVar = (varName: string) => localize('enterNewValueForVar', "Enter new value for variable '{0}'", varName);
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ export async function getPublishDatabaseSettings(project: Project, promptForConn
|
|||||||
reject();
|
reject();
|
||||||
});
|
});
|
||||||
quickPick.onDidChangeSelection(async items => {
|
quickPick.onDidChangeSelection(async items => {
|
||||||
if (items[0].label === constants.browseForProfile) {
|
if (items[0].label === constants.browseForProfileWithIcon) {
|
||||||
const locations = await promptForPublishProfile(project.projectFolderPath);
|
const locations = await promptForPublishProfile(project.projectFolderPath);
|
||||||
if (!locations) {
|
if (!locations) {
|
||||||
// Clear items so that this event will trigger again if they select the same item
|
// Clear items so that this event will trigger again if they select the same item
|
||||||
|
|||||||
Reference in New Issue
Block a user