Browse Source

Fixes git cmd palette not closing after cmd pick

main
Eric Amodio 4 years ago
parent
commit
245a82dcae
2 changed files with 8 additions and 2 deletions
  1. +4
    -1
      src/commands/git/show.ts
  2. +4
    -1
      src/commands/git/status.ts

+ 4
- 1
src/commands/git/show.ts View File

@ -149,8 +149,11 @@ export class ShowGitCommand extends QuickCommand {
if (result === StepResult.Break) continue;
if (result instanceof GitCommandQuickPickItem) {
yield* result.executeSteps(this.pickedVia);
const r = yield* result.executeSteps(this.pickedVia);
state.counter--;
if (r === StepResult.Break) {
QuickCommand.endSteps(state);
}
continue;
}

+ 4
- 1
src/commands/git/status.ts View File

@ -107,8 +107,11 @@ export class StatusGitCommand extends QuickCommand {
}
if (result instanceof GitCommandQuickPickItem) {
yield* result.executeSteps(this.pickedVia);
const r = yield* result.executeSteps(this.pickedVia);
state.counter--;
if (r === StepResult.Break) {
QuickCommand.endSteps(state);
}
continue;
}

Loading…
Cancel
Save