Skip to content

Commit 8932ab0

Browse files
committed
Fixes updating selected grouped view
1 parent f0bde22 commit 8932ab0

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/views/scmGroupedView.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import type { Commands } from '../constants.commands';
33
import type { GroupableTreeViewTypes } from '../constants.views';
44
import type { Container } from '../container';
55
import { executeCommand, registerCommand } from '../system/vscode/command';
6-
import { setContext } from '../system/vscode/context';
76
import { BranchesView } from './branchesView';
87
import { CommitsView } from './commitsView';
98
import { ContributorsView } from './contributorsView';
@@ -58,7 +57,6 @@ export class ScmGroupedView implements Disposable {
5857

5958
if (this._view?.type === type) return this._view as TreeViewByType[T];
6059

61-
void setContext('gitlens:views:scm:grouped:view', type);
6260
this._view?.dispose();
6361

6462
this._view = this.getView(type);

src/views/views.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ export class Views implements Disposable {
6565
}
6666
set lastSelectedScmGroupedView(type: GroupableTreeViewTypes | undefined) {
6767
this._lastSelectedScmGroupedView = type;
68+
void setContext('gitlens:views:scm:grouped:view', type);
6869
void this.container.storage.storeWorkspace('views:scm:grouped:selected', type);
6970
}
7071

0 commit comments

Comments
 (0)