mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
Git - rename "Open Stash" to "Preview Stash" (#201973)
* Git - rename "Open Stash" to "Preview Stash" * Add Preview Stash command to the "..." menu
This commit is contained in:
parent
cfebdd863a
commit
f8616b9a2b
|
@ -675,8 +675,8 @@
|
||||||
"enablement": "!operationInProgress"
|
"enablement": "!operationInProgress"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"command": "git.stashOpen",
|
"command": "git.stashPreview",
|
||||||
"title": "%command.stashOpen%",
|
"title": "%command.stashPreview%",
|
||||||
"category": "Git",
|
"category": "Git",
|
||||||
"enablement": "!operationInProgress"
|
"enablement": "!operationInProgress"
|
||||||
},
|
},
|
||||||
|
@ -1264,7 +1264,7 @@
|
||||||
"when": "config.git.enabled && !git.missing && git.parentRepositoryCount != 0"
|
"when": "config.git.enabled && !git.missing && git.parentRepositoryCount != 0"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"command": "git.openStash",
|
"command": "git.stashPreview",
|
||||||
"when": "config.git.enabled && !git.missing && config.multiDiffEditor.experimental.enabled"
|
"when": "config.git.enabled && !git.missing && config.multiDiffEditor.experimental.enabled"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -2103,6 +2103,11 @@
|
||||||
{
|
{
|
||||||
"command": "git.stashDropAll",
|
"command": "git.stashDropAll",
|
||||||
"group": "4_drop@2"
|
"group": "4_drop@2"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"command": "git.stashPreview",
|
||||||
|
"when": "config.multiDiffEditor.experimental.enabled",
|
||||||
|
"group": "5_preview@1"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"git.tags": [
|
"git.tags": [
|
||||||
|
|
|
@ -104,7 +104,7 @@
|
||||||
"command.stashApplyLatest": "Apply Latest Stash",
|
"command.stashApplyLatest": "Apply Latest Stash",
|
||||||
"command.stashDrop": "Drop Stash...",
|
"command.stashDrop": "Drop Stash...",
|
||||||
"command.stashDropAll": "Drop All Stashes...",
|
"command.stashDropAll": "Drop All Stashes...",
|
||||||
"command.stashOpen": "Open Stash...",
|
"command.stashPreview": "Preview Stash...",
|
||||||
"command.timelineOpenDiff": "Open Changes",
|
"command.timelineOpenDiff": "Open Changes",
|
||||||
"command.timelineOpenCommit": "Open Commit",
|
"command.timelineOpenCommit": "Open Commit",
|
||||||
"command.timelineCopyCommitId": "Copy Commit ID",
|
"command.timelineCopyCommitId": "Copy Commit ID",
|
||||||
|
|
|
@ -3535,9 +3535,9 @@ export class CommandCenter {
|
||||||
await repository.dropStash();
|
await repository.dropStash();
|
||||||
}
|
}
|
||||||
|
|
||||||
@command('git.stashOpen', { repository: true })
|
@command('git.stashPreview', { repository: true })
|
||||||
async stashOpen(repository: Repository): Promise<void> {
|
async stashPreview(repository: Repository): Promise<void> {
|
||||||
const placeHolder = l10n.t('Pick a stash to open');
|
const placeHolder = l10n.t('Pick a stash to preview');
|
||||||
const stash = await this.pickStash(repository, placeHolder);
|
const stash = await this.pickStash(repository, placeHolder);
|
||||||
|
|
||||||
if (!stash) {
|
if (!stash) {
|
||||||
|
|
Loading…
Reference in a new issue