mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 04:49:35 +00:00
Updating naming scheme to match other commands
This commit is contained in:
parent
d5a83f6d38
commit
528f5805e7
|
@ -393,8 +393,8 @@
|
|||
"category": "Git"
|
||||
},
|
||||
{
|
||||
"command": "git.dropStash",
|
||||
"title": "%command.dropStash%",
|
||||
"command": "git.stashDrop",
|
||||
"title": "%command.stashDrop%",
|
||||
"category": "Git"
|
||||
}
|
||||
],
|
||||
|
@ -649,7 +649,7 @@
|
|||
"when": "config.git.enabled && gitOpenRepositoryCount != 0"
|
||||
},
|
||||
{
|
||||
"command": "git.dropStash",
|
||||
"command": "git.stashDrop",
|
||||
"when": "config.get.enabled && gitOpenRepositoryCount != 0"
|
||||
}
|
||||
],
|
||||
|
@ -805,7 +805,7 @@
|
|||
"when": "scmProvider == git"
|
||||
},
|
||||
{
|
||||
"command": "git.dropStash",
|
||||
"command": "git.stashDrop",
|
||||
"group": "6_stash",
|
||||
"when": "scmProvider == git"
|
||||
},
|
||||
|
|
|
@ -62,7 +62,7 @@
|
|||
"command.stashPopLatest": "Pop Latest Stash",
|
||||
"command.stashApply": "Apply Stash...",
|
||||
"command.stashApplyLatest": "Apply Latest Stash",
|
||||
"command.dropStash": "Drop Stash...",
|
||||
"command.stashDrop": "Drop Stash...",
|
||||
"config.enabled": "Whether git is enabled.",
|
||||
"config.path": "Path and filename of the git executable, e.g. `C:\\Program Files\\Git\\bin\\git.exe` (Windows).",
|
||||
"config.autoRepositoryDetection": "Configures when repositories should be automatically detected.",
|
||||
|
|
|
@ -2095,8 +2095,8 @@ export class CommandCenter {
|
|||
await repository.applyStash();
|
||||
}
|
||||
|
||||
@command('git.dropStash', { repository: true })
|
||||
async dropStash(repository: Repository): Promise<void> {
|
||||
@command('git.stashDrop', { repository: true })
|
||||
async stashDrop(repository: Repository): Promise<void> {
|
||||
const placeHolder = localize('pick stash to drop', "Pick a stash to drop");
|
||||
const stash = await this.pickStash(repository, placeHolder);
|
||||
|
||||
|
|
Loading…
Reference in a new issue