Sfoglia il codice sorgente

Fixes retry action for Git commands

main
Eric Amodio 3 anni fa
parent
commit
e6c7334b06
2 ha cambiato i file con 7 aggiunte e 2 eliminazioni
  1. +6
    -0
      src/commands/quickCommand.buttons.ts
  2. +1
    -2
      src/commands/quickCommand.ts

+ 6
- 0
src/commands/quickCommand.buttons.ts Vedi File

@ -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 Vedi File

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

Caricamento…
Annulla
Salva