|
@ -83,6 +83,10 @@ export abstract class QuickCommandBase implements QuickPickItem { |
|
|
this.detail = options.detail; |
|
|
this.detail = options.detail; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
get canConfirm(): boolean { |
|
|
|
|
|
return true; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
get canSkipConfirm(): boolean { |
|
|
get canSkipConfirm(): boolean { |
|
|
return true; |
|
|
return true; |
|
|
} |
|
|
} |
|
@ -106,12 +110,12 @@ export abstract class QuickCommandBase implements QuickPickItem { |
|
|
this._pickedVia = value; |
|
|
this._pickedVia = value; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
get skipConfirmKey(): string | undefined { |
|
|
|
|
|
|
|
|
get skipConfirmKey(): string { |
|
|
return `${this.key}:${this.pickedVia}`; |
|
|
return `${this.key}:${this.pickedVia}`; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
confirm(override?: boolean) { |
|
|
confirm(override?: boolean) { |
|
|
if (!this.canSkipConfirm || this.skipConfirmKey === undefined) return true; |
|
|
|
|
|
|
|
|
if (!this.canConfirm || !this.canSkipConfirm) return true; |
|
|
|
|
|
|
|
|
return override !== undefined |
|
|
return override !== undefined |
|
|
? override |
|
|
? override |
|
|