mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-25 09:35:37 -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:
@@ -35,15 +35,15 @@ export class OpenExistingDialog extends DialogBase {
|
||||
|
||||
async validate(): Promise<boolean> {
|
||||
try {
|
||||
if (await this.workspaceService.validateWorkspace() === false) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (this.localRadioButton?.checked) {
|
||||
await this.validateFile(this.filePathTextBox!.value!, constants.Project.toLowerCase());
|
||||
} else {
|
||||
await this.validateClonePath(<string>this.localClonePathTextBox!.value);
|
||||
}
|
||||
|
||||
if (await this.workspaceService.validateWorkspace() === false) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
catch (err) {
|
||||
|
||||
Reference in New Issue
Block a user