mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-15 09:35:37 -05:00
fix restart ADS warning showing twice for create project from db (#17214)
This commit is contained in:
@@ -372,9 +372,6 @@ export class CreateProjectFromDatabaseDialog {
|
||||
|
||||
async validate(): Promise<boolean> {
|
||||
try {
|
||||
if (await getDataWorkspaceExtensionApi().validateWorkspace() === false) {
|
||||
return false;
|
||||
}
|
||||
// the selected location should be an existing directory
|
||||
const parentDirectoryExists = await exists(this.projectLocationTextBox!.value!);
|
||||
if (!parentDirectoryExists) {
|
||||
@@ -388,6 +385,11 @@ export class CreateProjectFromDatabaseDialog {
|
||||
this.showErrorMessage(constants.ProjectDirectoryAlreadyExistError(this.projectNameTextBox!.value!, this.projectLocationTextBox!.value!));
|
||||
return false;
|
||||
}
|
||||
|
||||
if (await getDataWorkspaceExtensionApi().validateWorkspace() === false) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
} catch (err) {
|
||||
this.showErrorMessage(err?.message ? err.message : err);
|
||||
|
||||
Reference in New Issue
Block a user