mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 19:18:59 +01:00
Add cancel button to manage trusted extensions quickpick, fixes #113347
This commit is contained in:
@@ -40,6 +40,8 @@ export class MainThreadAuthenticationProvider extends Disposable {
|
||||
|
||||
const quickPick = this.quickInputService.createQuickPick<{ label: string, description: string, extension: AllowedExtension }>();
|
||||
quickPick.canSelectMany = true;
|
||||
quickPick.customButton = true;
|
||||
quickPick.customLabel = nls.localize('manageTrustedExtensions.cancel', 'Cancel');
|
||||
const usages = readAccountUsages(this.storageService, this.id, accountName);
|
||||
const items = allowedExtensions.map(extension => {
|
||||
const usage = usages.find(usage => extension.id === usage.extensionId);
|
||||
@@ -68,6 +70,10 @@ export class MainThreadAuthenticationProvider extends Disposable {
|
||||
quickPick.dispose();
|
||||
});
|
||||
|
||||
quickPick.onDidCustom(() => {
|
||||
quickPick.hide();
|
||||
});
|
||||
|
||||
quickPick.show();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user