diff --git a/extensions/git/package.json b/extensions/git/package.json index 34c428599c4..07f715404bc 100644 --- a/extensions/git/package.json +++ b/extensions/git/package.json @@ -50,7 +50,7 @@ } }, { - "command": "git.stage-all", + "command": "git.stageAll", "title": "Stage All", "category": "Git", "icon": { @@ -68,7 +68,7 @@ } }, { - "command": "git.unstage-all", + "command": "git.unstageAll", "title": "Unstage All", "category": "Git", "icon": { @@ -105,12 +105,12 @@ ], "scm/resourceGroup/context": [ { - "command": "git.unstage-all", + "command": "git.unstageAll", "when": "scmProvider == git && scmResourceGroup == index", "group": "1_modification" }, { - "command": "git.unstage-all", + "command": "git.unstageAll", "when": "scmProvider == git && scmResourceGroup == index", "group": "inline" }, @@ -120,7 +120,7 @@ "group": "1_modification" }, { - "command": "git.stage-all", + "command": "git.stageAll", "when": "scmProvider == git && scmResourceGroup == workingTree", "group": "1_modification" }, @@ -130,7 +130,7 @@ "group": "inline" }, { - "command": "git.stage-all", + "command": "git.stageAll", "when": "scmProvider == git && scmResourceGroup == workingTree", "group": "inline" } diff --git a/extensions/git/src/commands.ts b/extensions/git/src/commands.ts index 36083481bb9..71f0f38e426 100644 --- a/extensions/git/src/commands.ts +++ b/extensions/git/src/commands.ts @@ -16,12 +16,12 @@ function refresh(model: Model): () => void { }; } -function openChange(...args: any[]): void { - console.log('open', args); +function openChange(resource: SCMResource): void { + log('open change', resource); } -function openFile(...args: any[]): void { - console.log('open', args); +function openFile(resource: SCMResource): void { + log('open file', resource); } function stage(resource: SCMResource): void { @@ -29,7 +29,7 @@ function stage(resource: SCMResource): void { } function stageAll(resourceGroup: SCMResourceGroup): void { - log('stage-all', resourceGroup); + log('stageAll', resourceGroup); } function unstage(resource: SCMResource): void { @@ -37,7 +37,7 @@ function unstage(resource: SCMResource): void { } function unstageAll(resourceGroup: SCMResourceGroup): void { - log('unstage-all', resourceGroup); + log('unstageAll', resourceGroup); } function clean(resource: SCMResource): void { @@ -54,9 +54,9 @@ export function registerCommands(model: Model): Disposable { commands.registerCommand('git.openChange', openChange), commands.registerCommand('git.openFile', openFile), commands.registerCommand('git.stage', stage), - commands.registerCommand('git.stage-all', stageAll), + commands.registerCommand('git.stageAll', stageAll), commands.registerCommand('git.unstage', unstage), - commands.registerCommand('git.unstage-all', unstageAll), + commands.registerCommand('git.unstageAll', unstageAll), commands.registerCommand('git.clean', clean), commands.registerCommand('git.cleanAll', cleanAll), ];