Przeglądaj źródła

Fixes git cmd palette not closing after cmd pick

main
Eric Amodio 4 lat temu
rodzic
commit
245a82dcae
2 zmienionych plików z 8 dodań i 2 usunięć
  1. +4
    -1
      src/commands/git/show.ts
  2. +4
    -1
      src/commands/git/status.ts

+ 4
- 1
src/commands/git/show.ts Wyświetl plik

@ -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 Wyświetl plik

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

Ładowanie…
Anuluj
Zapisz