mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-17 17:22:42 -05:00
Focus projects view when New Project is created (#11048)
* Focusing for new project * Consolidated focus() logic
This commit is contained in:
@@ -93,6 +93,7 @@ export class ProjectsController {
|
||||
|
||||
try {
|
||||
this.refreshProjectsTree();
|
||||
this.focusProject(newProject);
|
||||
}
|
||||
catch (err) {
|
||||
// if the project didnt load - remove it from the list of open projects
|
||||
@@ -641,8 +642,6 @@ export class ProjectsController {
|
||||
|
||||
//Refresh project to show the added files
|
||||
this.refreshProjectsTree();
|
||||
|
||||
await this.focusProject(project);
|
||||
}
|
||||
catch (err) {
|
||||
this.apiWrapper.showErrorMessage(utils.getErrorMessage(err));
|
||||
|
||||
Reference in New Issue
Block a user