diff --git a/src/commands/quickCommand.buttons.ts b/src/commands/quickCommand.buttons.ts index a5e6fa2..c02ee6b 100644 --- a/src/commands/quickCommand.buttons.ts +++ b/src/commands/quickCommand.buttons.ts @@ -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; private getState() { diff --git a/src/commands/quickCommand.ts b/src/commands/quickCommand.ts index 83b75ad..fecbfee 100644 --- a/src/commands/quickCommand.ts +++ b/src/commands/quickCommand.ts @@ -190,8 +190,7 @@ export abstract class QuickCommand implements QuickPickItem { } async retry(): Promise { - await this.next(Directive.Back); - await this.next(); + await this.next(Directive.Noop); return this.value; }