瀏覽代碼

Fixes retry action for Git commands

main
Eric Amodio 3 年之前
父節點
當前提交
e6c7334b06
共有 2 個檔案被更改,包括 7 行新增2 行删除
  1. +6
    -0
      src/commands/quickCommand.buttons.ts
  2. +1
    -2
      src/commands/quickCommand.ts

+ 6
- 0
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<boolean | void>;
private getState() {

+ 1
- 2
src/commands/quickCommand.ts 查看文件

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

Loading…
取消
儲存