From b151e96bb8ad31de51b26b8542b29be9a9a854d0 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Mon, 24 Aug 2020 02:12:03 -0400 Subject: [PATCH] Changes default views order --- package.json | 54 ++++++++++++++++++++++++++---------------------- src/views/historyView.ts | 1 + 2 files changed, 30 insertions(+), 25 deletions(-) diff --git a/package.json b/package.json index f2e1e4b..d76a639 100644 --- a/package.json +++ b/package.json @@ -7077,6 +7077,10 @@ "icon": "images/views/repositories.svg" }, { + "id": "gitlens.views.history", + "name": "History" + }, + { "id": "gitlens.views.fileHistory:gitlens", "name": "File History", "when": "config.gitlens.views.fileHistory.enabled && config.gitlens.views.fileHistory.location == gitlens", @@ -7092,44 +7096,44 @@ "visibility": "hidden" }, { - "id": "gitlens.views.compare:gitlens", - "name": "Compare Commits", - "when": "config.gitlens.views.compare.enabled && config.gitlens.views.compare.location == gitlens", - "contextualTitle": "GitLens", - "icon": "images/views/compare.svg", - "visibility": "collapsed" + "id": "gitlens.views.branches", + "name": "Branches" }, { - "id": "gitlens.views.search:gitlens", - "name": "Search Commits", - "when": "config.gitlens.views.search.enabled && config.gitlens.views.search.location == gitlens", - "contextualTitle": "GitLens", - "icon": "images/views/search.svg", + "id": "gitlens.views.remotes", + "name": "Remotes", "visibility": "collapsed" }, { - "id": "gitlens.views.branches", - "name": "Branches" - }, - { - "id": "gitlens.views.contributors", - "name": "Contributors" + "id": "gitlens.views.tags", + "name": "Tags", + "visibility": "collapsed" }, { - "id": "gitlens.views.history", - "name": "History" + "id": "gitlens.views.stashes", + "name": "Stashes", + "visibility": "collapsed" }, { - "id": "gitlens.views.remotes", - "name": "Remotes" + "id": "gitlens.views.contributors", + "name": "Contributors", + "visibility": "collapsed" }, { - "id": "gitlens.views.stashes", - "name": "Stashes" + "id": "gitlens.views.search:gitlens", + "name": "Search Commits", + "when": "config.gitlens.views.search.enabled && config.gitlens.views.search.location == gitlens", + "contextualTitle": "GitLens", + "icon": "images/views/search.svg", + "visibility": "collapsed" }, { - "id": "gitlens.views.tags", - "name": "Tags" + "id": "gitlens.views.compare:gitlens", + "name": "Compare Commits", + "when": "config.gitlens.views.compare.enabled && config.gitlens.views.compare.location == gitlens", + "contextualTitle": "GitLens", + "icon": "images/views/compare.svg", + "visibility": "collapsed" } ], "explorer": [ diff --git a/src/views/historyView.ts b/src/views/historyView.ts index 628a54e..5679601 100644 --- a/src/views/historyView.ts +++ b/src/views/historyView.ts @@ -166,6 +166,7 @@ export class HistoryViewNode extends ViewNode { return item; } } + export class HistoryView extends ViewBase { protected readonly configKey = 'history';