|
@ -60,8 +60,6 @@ import { |
|
|
ReferencesQuickPickItem, |
|
|
ReferencesQuickPickItem, |
|
|
RefQuickPickItem, |
|
|
RefQuickPickItem, |
|
|
RepositoryQuickPickItem, |
|
|
RepositoryQuickPickItem, |
|
|
RevealInSideBarQuickPickItem, |
|
|
|
|
|
SearchForCommitQuickPickItem, |
|
|
|
|
|
TagQuickPickItem, |
|
|
TagQuickPickItem, |
|
|
} from '../quickpicks'; |
|
|
} from '../quickpicks'; |
|
|
import { Arrays, Iterables, Strings } from '../system'; |
|
|
import { Arrays, Iterables, Strings } from '../system'; |
|
@ -1468,12 +1466,7 @@ async function getShowCommitOrStashStepItems< |
|
|
const items: (CommandQuickPickItem | QuickPickSeparator)[] = [new CommitFilesQuickPickItem(state.reference)]; |
|
|
const items: (CommandQuickPickItem | QuickPickSeparator)[] = [new CommitFilesQuickPickItem(state.reference)]; |
|
|
|
|
|
|
|
|
if (GitCommit.isStash(state.reference)) { |
|
|
if (GitCommit.isStash(state.reference)) { |
|
|
items.push( |
|
|
|
|
|
QuickPickSeparator.create(), |
|
|
|
|
|
new RevealInSideBarQuickPickItem(state.reference), |
|
|
|
|
|
QuickPickSeparator.create(), |
|
|
|
|
|
new CommitCopyMessageQuickPickItem(state.reference), |
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
items.push(QuickPickSeparator.create(), new CommitCopyMessageQuickPickItem(state.reference)); |
|
|
|
|
|
|
|
|
items.push( |
|
|
items.push( |
|
|
QuickPickSeparator.create('Actions'), |
|
|
QuickPickSeparator.create('Actions'), |
|
@ -1496,12 +1489,6 @@ async function getShowCommitOrStashStepItems< |
|
|
}), |
|
|
}), |
|
|
); |
|
|
); |
|
|
} else { |
|
|
} else { |
|
|
items.push( |
|
|
|
|
|
QuickPickSeparator.create(), |
|
|
|
|
|
new RevealInSideBarQuickPickItem(state.reference), |
|
|
|
|
|
new SearchForCommitQuickPickItem(state.reference), |
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
const remotes = await Container.instance.git.getRemotesWithProviders(state.repo.path, { sort: true }); |
|
|
const remotes = await Container.instance.git.getRemotesWithProviders(state.repo.path, { sort: true }); |
|
|
if (remotes?.length) { |
|
|
if (remotes?.length) { |
|
|
items.push( |
|
|
items.push( |
|
@ -1836,18 +1823,10 @@ async function getShowCommitOrStashFileStepItems< |
|
|
if (GitCommit.isStash(state.reference)) { |
|
|
if (GitCommit.isStash(state.reference)) { |
|
|
items.push( |
|
|
items.push( |
|
|
QuickPickSeparator.create(), |
|
|
QuickPickSeparator.create(), |
|
|
new RevealInSideBarQuickPickItem(state.reference), |
|
|
|
|
|
QuickPickSeparator.create(), |
|
|
|
|
|
new CommitCopyMessageQuickPickItem(state.reference), |
|
|
new CommitCopyMessageQuickPickItem(state.reference), |
|
|
QuickPickSeparator.create('Actions'), |
|
|
QuickPickSeparator.create('Actions'), |
|
|
); |
|
|
); |
|
|
} else { |
|
|
} else { |
|
|
items.push( |
|
|
|
|
|
QuickPickSeparator.create(), |
|
|
|
|
|
new RevealInSideBarQuickPickItem(state.reference), |
|
|
|
|
|
new SearchForCommitQuickPickItem(state.reference), |
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
const remotes = await Container.instance.git.getRemotesWithProviders(state.repo.path, { sort: true }); |
|
|
const remotes = await Container.instance.git.getRemotesWithProviders(state.repo.path, { sort: true }); |
|
|
if (remotes?.length) { |
|
|
if (remotes?.length) { |
|
|
items.push( |
|
|
items.push( |
|
|