Bläddra i källkod

Fixes retry action for Git commands

main
Eric Amodio 3 år sedan
förälder
incheckning
e6c7334b06
2 ändrade filer med 7 tillägg och 2 borttagningar
  1. +6
    -0
      src/commands/quickCommand.buttons.ts
  2. +1
    -2
      src/commands/quickCommand.ts

+ 6
- 0
src/commands/quickCommand.buttons.ts Visa fil

@ -37,6 +37,12 @@ export class ToggleQuickInputButton implements QuickInputButton {
this._on = value;
}
/**
*
* @param quickInput
* @returns `true` if the step should be retried (refreshed)
*
*/
onDidClick?(quickInput: QuickInput): boolean | void | Promise<boolean | void>;
private getState() {

+ 1
- 2
src/commands/quickCommand.ts Visa fil

@ -190,8 +190,7 @@ export abstract class QuickCommand implements QuickPickItem {
}
async retry(): Promise<QuickPickStep | QuickInputStep | undefined> {
await this.next(Directive.Back);
await this.next();
await this.next(Directive.Noop);
return this.value;
}

Laddar…
Avbryt
Spara