diff --git a/src/tree/registries/UnifiedRegistryTreeDataProvider.ts b/src/tree/registries/UnifiedRegistryTreeDataProvider.ts index 23a7bf6b34..057334589c 100644 --- a/src/tree/registries/UnifiedRegistryTreeDataProvider.ts +++ b/src/tree/registries/UnifiedRegistryTreeDataProvider.ts @@ -127,7 +127,8 @@ export class UnifiedRegistryTreeDataProvider implements vscode.TreeDataProvider< }); } - const picked = await vscode.window.showQuickPick(picks, { placeHolder: vscode.l10n.t('Select a registry provider to use') }); + const pickPrompt = picks && picks.length > 0 ? vscode.l10n.t('Select a registry provider to use') : vscode.l10n.t('No registry providers are available for connection'); + const picked = await vscode.window.showQuickPick(picks, { placeHolder: pickPrompt }); if (!picked) { return; }