fix for windows path to show in project tree across platforms correctly (#11027)

* fix for windows path to show in project tree across platforms correctly

* allow retrying on project that failed to load

* test for project failed to load case

* Adding platform safe uri for database ref in tree
This commit is contained in:
Udeesha Gautam
2020-06-22 22:37:24 -07:00
committed by GitHub
parent d0b71e116b
commit cfbce96fe2
5 changed files with 60 additions and 3 deletions

View File

@@ -85,11 +85,19 @@ export class ProjectsController {
// TODO: prompt to create new datasources.json; for now, swallow
}
else {
this.projects = this.projects.filter((e) => { return e !== newProject; });
throw err;
}
}
this.refreshProjectsTree();
try {
this.refreshProjectsTree();
}
catch (err) {
// if the project didnt load - remove it from the list of open projects
this.projects = this.projects.filter((e) => { return e !== newProject; });
throw err;
}
return newProject;
}