Skip to content

Commit

Permalink
show not available message when there no registries provider available
Browse files Browse the repository at this point in the history
  • Loading branch information
alexyaang committed Sep 22, 2023
1 parent 6c60967 commit 431f59d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/tree/registries/UnifiedRegistryTreeDataProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 431f59d

Please sign in to comment.