Skip to content

Commit

Permalink
Avoids auto-expanding repos in Workspaces view
Browse files Browse the repository at this point in the history
  • Loading branch information
eamodio committed Jul 12, 2023
1 parent 34e4d5e commit e5774a7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/views/nodes/repositoryNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,9 @@ export class RepositoryNode extends SubscribeableViewNode<ViewsWithRepositories>

const item = new TreeItem(
label,
workspace != null ? TreeItemCollapsibleState.Collapsed : TreeItemCollapsibleState.Expanded,
workspace != null || this.view.type === 'workspaces'
? TreeItemCollapsibleState.Collapsed
: TreeItemCollapsibleState.Expanded,
);
item.id = this.id;
item.contextValue = contextValue;
Expand Down

0 comments on commit e5774a7

Please sign in to comment.