Skip to content

Commit e5774a7

Browse files
committed
Avoids auto-expanding repos in Workspaces view
1 parent 34e4d5e commit e5774a7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/views/nodes/repositoryNode.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,9 @@ export class RepositoryNode extends SubscribeableViewNode<ViewsWithRepositories>
304304

305305
const item = new TreeItem(
306306
label,
307-
workspace != null ? TreeItemCollapsibleState.Collapsed : TreeItemCollapsibleState.Expanded,
307+
workspace != null || this.view.type === 'workspaces'
308+
? TreeItemCollapsibleState.Collapsed
309+
: TreeItemCollapsibleState.Expanded,
308310
);
309311
item.id = this.id;
310312
item.contextValue = contextValue;

0 commit comments

Comments
 (0)