Updating naming scheme to match other commands

This commit is contained in:
Drew Cross 2019-07-10 20:18:15 -07:00
parent d5a83f6d38
commit 528f5805e7
3 changed files with 7 additions and 7 deletions

View file

@ -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"
},

View file

@ -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.",

View file

@ -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);