mirror of
https://github.com/microsoft/vscode.git
synced 2026-09-30 06:58:55 +01:00
fixes #107308
This commit is contained in:
@@ -391,12 +391,11 @@ class ManageAuthorizedExtensionURIsAction extends Action2 {
|
||||
async run(accessor: ServicesAccessor): Promise<void> {
|
||||
const storageService = accessor.get(IStorageService);
|
||||
const quickInputService = accessor.get(IQuickInputService);
|
||||
|
||||
const storage = new ConfirmedExtensionIdStorage(storageService);
|
||||
|
||||
const items = storage.extensions.map(label => ({ label, picked: true } as IQuickPickItem));
|
||||
|
||||
if (items.length === 0) {
|
||||
await quickInputService.pick([{ label: localize('no', 'There are currently no authorized extension URIs.') }]);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user