|
|
@ -1,12 +1,6 @@ |
|
|
|
'use strict'; |
|
|
|
import { commands, ConfigurationChangeEvent, TreeItem, TreeItemCollapsibleState } from 'vscode'; |
|
|
|
import { |
|
|
|
BranchSorting, |
|
|
|
configuration, |
|
|
|
SearchAndCompareViewConfig, |
|
|
|
TagSorting, |
|
|
|
ViewFilesLayout, |
|
|
|
} from '../configuration'; |
|
|
|
import { configuration, SearchAndCompareViewConfig, ViewFilesLayout } from '../configuration'; |
|
|
|
import { ContextKeys, NamedRef, PinnedItem, PinnedItems, setContext, WorkspaceState } from '../constants'; |
|
|
|
import { Container } from '../container'; |
|
|
|
import { GitLog, GitRevision, SearchPattern } from '../git/git'; |
|
|
@ -154,10 +148,7 @@ export class SearchAndCompareViewNode extends ViewNode { |
|
|
|
ReferencesQuickPickIncludes.BranchesAndTags | |
|
|
|
ReferencesQuickPickIncludes.HEAD | |
|
|
|
ReferencesQuickPickIncludes.WorkingTree, |
|
|
|
sort: { |
|
|
|
branches: { current: true, orderBy: BranchSorting.DateDesc }, |
|
|
|
tags: { orderBy: TagSorting.DateDesc }, |
|
|
|
}, |
|
|
|
sort: { branches: { current: true } }, |
|
|
|
}, |
|
|
|
); |
|
|
|
if (pick == null) { |
|
|
@ -194,10 +185,7 @@ export class SearchAndCompareViewNode extends ViewNode { |
|
|
|
ReferencesQuickPickIncludes.BranchesAndTags | |
|
|
|
ReferencesQuickPickIncludes.HEAD | |
|
|
|
ReferencesQuickPickIncludes.WorkingTree, |
|
|
|
sort: { |
|
|
|
branches: { current: true, orderBy: BranchSorting.DateDesc }, |
|
|
|
tags: { orderBy: TagSorting.DateDesc }, |
|
|
|
}, |
|
|
|
sort: { branches: { current: true }, tags: {} }, |
|
|
|
}); |
|
|
|
if (pick == null) { |
|
|
|
await this.triggerChange(); |
|
|
|