Skip to content

Commit 3b82957

Browse files
authored
SCM - fix close repository/close other repositories actions (microsoft#203292)
1 parent 1091f68 commit 3b82957

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,7 @@ export class SCMRepositoriesViewPane extends ViewPane {
151151
const actions = collectContextMenuActions(menu);
152152

153153
const actionRunner = this._register(new RepositoryActionRunner(() => {
154-
const focusedRepositories = this.list.getFocusedElements();
155-
const selectedRepositories = this.list.getSelectedElements();
156-
157-
return Array.from(new Set<ISCMRepository>([...focusedRepositories, ...selectedRepositories]));
154+
return this.list.getSelectedElements();
158155
}));
159156
actionRunner.onWillRun(() => this.list.domFocus());
160157

0 commit comments

Comments
 (0)