mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-24 17:23:05 -05:00
Fixing the error order for Project dialog validation (#16141)
* Fixing the error order for Project dialog * Taking PR review comments and making the change for open project also
This commit is contained in:
@@ -34,9 +34,6 @@ export class NewProjectDialog extends DialogBase {
|
||||
}
|
||||
|
||||
async validate(): Promise<boolean> {
|
||||
if (await this.workspaceService.validateWorkspace() === false) {
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
// the selected location should be an existing directory
|
||||
const parentDirectoryExists = await directoryExist(this.model.location);
|
||||
@@ -52,6 +49,9 @@ export class NewProjectDialog extends DialogBase {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (await this.workspaceService.validateWorkspace() === false) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
catch (err) {
|
||||
|
||||
Reference in New Issue
Block a user