mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-08 17:24:01 -05:00
Have create proj from database show default save location as option (#16909)
* Default create proj location to setting * update icons * undo
This commit is contained in:
@@ -26,6 +26,7 @@ export const openedProjectsUndefinedAfterRefresh = localize('openedProjectsUndef
|
||||
export const OkButtonText = localize('dataworkspace.ok', "OK");
|
||||
export const BrowseButtonText = localize('dataworkspace.browse', "Browse");
|
||||
export const BrowseEllipsis = localize('dataworkspace.browseEllipsis', "Browse...");
|
||||
export const BrowseEllipsisWithIcon = `$(folder) ${BrowseEllipsis}`;
|
||||
export const OpenButtonText = localize('dataworkspace.open', "Open");
|
||||
export const CreateButtonText = localize('dataworkspace.create', "Create");
|
||||
export const Select = localize('dataworkspace.select', "Select");
|
||||
|
||||
@@ -45,7 +45,7 @@ export async function createNewProjectWithQuickpick(workspaceService: WorkspaceS
|
||||
// 3. Prompt for Project location
|
||||
// Show quick pick with just browse option to give user context about what the file dialog is for (since that doesn't always have a title)
|
||||
const browseProjectLocation = await vscode.window.showQuickPick(
|
||||
[constants.BrowseEllipsis],
|
||||
[constants.BrowseEllipsisWithIcon],
|
||||
{ title: constants.SelectProjectLocation, ignoreFocusOut: true });
|
||||
if (!browseProjectLocation) {
|
||||
return;
|
||||
@@ -70,7 +70,7 @@ export async function createNewProjectWithQuickpick(workspaceService: WorkspaceS
|
||||
if (exists) {
|
||||
// Show the browse quick pick again with the title updated with the error
|
||||
const browseProjectLocation = await vscode.window.showQuickPick(
|
||||
[constants.BrowseEllipsis],
|
||||
[constants.BrowseEllipsisWithIcon],
|
||||
{ title: constants.ProjectDirectoryAlreadyExistErrorShort(projectName), ignoreFocusOut: true });
|
||||
if (!browseProjectLocation) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user