|
1 | 1 | 'use strict'; |
2 | 2 | import { commands, ConfigurationChangeEvent, TreeItem, TreeItemCollapsibleState } from 'vscode'; |
3 | | -import { |
4 | | - BranchSorting, |
5 | | - configuration, |
6 | | - SearchAndCompareViewConfig, |
7 | | - TagSorting, |
8 | | - ViewFilesLayout, |
9 | | -} from '../configuration'; |
| 3 | +import { configuration, SearchAndCompareViewConfig, ViewFilesLayout } from '../configuration'; |
10 | 4 | import { ContextKeys, NamedRef, PinnedItem, PinnedItems, setContext, WorkspaceState } from '../constants'; |
11 | 5 | import { Container } from '../container'; |
12 | 6 | import { GitLog, GitRevision, SearchPattern } from '../git/git'; |
@@ -154,10 +148,7 @@ export class SearchAndCompareViewNode extends ViewNode<SearchAndCompareView> { |
154 | 148 | ReferencesQuickPickIncludes.BranchesAndTags | |
155 | 149 | ReferencesQuickPickIncludes.HEAD | |
156 | 150 | ReferencesQuickPickIncludes.WorkingTree, |
157 | | - sort: { |
158 | | - branches: { current: true, orderBy: BranchSorting.DateDesc }, |
159 | | - tags: { orderBy: TagSorting.DateDesc }, |
160 | | - }, |
| 151 | + sort: { branches: { current: true } }, |
161 | 152 | }, |
162 | 153 | ); |
163 | 154 | if (pick == null) { |
@@ -194,10 +185,7 @@ export class SearchAndCompareViewNode extends ViewNode<SearchAndCompareView> { |
194 | 185 | ReferencesQuickPickIncludes.BranchesAndTags | |
195 | 186 | ReferencesQuickPickIncludes.HEAD | |
196 | 187 | ReferencesQuickPickIncludes.WorkingTree, |
197 | | - sort: { |
198 | | - branches: { current: true, orderBy: BranchSorting.DateDesc }, |
199 | | - tags: { orderBy: TagSorting.DateDesc }, |
200 | | - }, |
| 188 | + sort: { branches: { current: true }, tags: {} }, |
201 | 189 | }); |
202 | 190 | if (pick == null) { |
203 | 191 | await this.triggerChange(); |
|
0 commit comments