Skip to content

Commit 74e3d65

Browse files
committed
Fixes typo with grouped file history view
1 parent 3f6f183 commit 74e3d65

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/views/views.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ import { ViewCommands } from './viewCommands';
4646
import { WorkspacesView } from './workspacesView';
4747
import { WorktreesView } from './worktreesView';
4848

49-
const defaultScmGroupedViews: Record<GroupableTreeViewTypes, boolean> = Object.freeze({
49+
const defaultScmGroupedViews = {
5050
commits: true,
5151
branches: true,
5252
remotes: true,
@@ -58,7 +58,7 @@ const defaultScmGroupedViews: Record<GroupableTreeViewTypes, boolean> = Object.f
5858
repositories: false,
5959
searchAndCompare: false,
6060
launchpad: false,
61-
});
61+
} as const;
6262

6363
export class Views implements Disposable {
6464
private readonly _disposable: Disposable;
@@ -382,7 +382,6 @@ export class Views implements Disposable {
382382
private registerViews(): Disposable[] {
383383
return [
384384
(this._draftsView = new DraftsView(this.container)),
385-
// (this._fileHistoryView = new FileHistoryView(this.container)),
386385
(this._lineHistoryView = new LineHistoryView(this.container)),
387386
(this._pullRequestView = new PullRequestView(this.container)),
388387
(this._workspacesView = new WorkspacesView(this.container)),
@@ -907,8 +906,7 @@ export class Views implements Disposable {
907906
case 'drafts':
908907
return this.drafts.show();
909908
case 'fileHistory':
910-
return show('contributors', this._fileHistoryView);
911-
// return this.fileHistory.show();
909+
return show('fileHistory', this._fileHistoryView);
912910
case 'launchpad':
913911
return show('launchpad', this._launchpadView);
914912
case 'lineHistory':
@@ -935,7 +933,7 @@ export class Views implements Disposable {
935933
}
936934
}
937935

938-
function getGroupedViews(cfg: Record<GroupableTreeViewTypes, boolean>) {
936+
function getGroupedViews(cfg: Readonly<Record<GroupableTreeViewTypes, boolean>>) {
939937
const groupedViews = new Set<GroupableTreeViewTypes>();
940938

941939
for (const [key, value] of Object.entries(cfg) as [GroupableTreeViewTypes, boolean][]) {

0 commit comments

Comments
 (0)