diff --git a/extensions/git/src/commands.ts b/extensions/git/src/commands.ts index c6a6eff32e0..c75e393ac89 100644 --- a/extensions/git/src/commands.ts +++ b/extensions/git/src/commands.ts @@ -619,6 +619,8 @@ export class CommandCenter { if (resourceStates.length === 0 || (resourceStates[0] && !(resourceStates[0].resourceUri instanceof Uri))) { const resource = this.getSCMResource(); + this.outputChannel.appendLine(`git.stage.getSCMResource ${resource ? resource.resourceUri.toString() : null}`); + if (!resource) { return; }