Skip to content

Commit

Permalink
Fix name collisions if multiple projects open on startup.
Browse files Browse the repository at this point in the history
  • Loading branch information
comintern committed Jan 17, 2019
1 parent f0d4885 commit b4ea011
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Expand Up @@ -84,7 +84,7 @@ private void Synchronize(List<Declaration> declarations)
foreach (var project in adding)
{
var model = new CodeExplorerProjectViewModel(project, declarations, _state, _vbe, false);
var model = new CodeExplorerProjectViewModel(project, declarations.Where(proj => proj.ProjectId.Equals(project.ProjectId)).ToList(), _state, _vbe, false);
Projects.Add(model);
model.IsExpanded = true;
}
Expand Down
Expand Up @@ -266,9 +266,8 @@ private void Synchronize(List<Declaration> declarations)
foreach (var project in adding)
{
var model = new CodeExplorerProjectViewModel(project, declarations, _state, _vbe);
var model = new CodeExplorerProjectViewModel(project, declarations.Where(proj => proj.ProjectId.Equals(project.ProjectId)).ToList(), _state, _vbe);
Projects.Add(model);
//model.IsExpanded = true;
}
CanSearch = Projects.Any();
Expand Down

0 comments on commit b4ea011

Please sign in to comment.