Skip to content

Commit 81bc3f9

Browse files
authored
SCM - fix bug with selection not being initialized correctly (#255392) (#255793)
1 parent 67534ca commit 81bc3f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vs/workbench/contrib/scm/browser/scmRepositoriesViewPane.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ export class SCMRepositoriesViewPane extends ViewPane {
124124

125125
this.createTree(treeContainer);
126126

127-
this.onDidChangeBodyVisibility(visible => {
127+
this.onDidChangeBodyVisibility(async visible => {
128128
if (!visible) {
129129
this.visibilityDisposables.clear();
130130
return;
@@ -134,7 +134,7 @@ export class SCMRepositoriesViewPane extends ViewPane {
134134
this._register(this.treeViewModel);
135135

136136
// Initial rendering
137-
this.tree.setInput(this.treeViewModel);
137+
await this.tree.setInput(this.treeViewModel);
138138

139139
// scm.repositories.visible setting
140140
this.visibilityDisposables.add(autorun(reader => {

0 commit comments

Comments
 (0)