mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-29 13:36:27 -05:00
sessions sign in experience (#304307)
This commit is contained in:
@@ -420,7 +420,7 @@ class DeviceCodeFlow implements IFlow {
|
||||
|
||||
const json = await result.json() as IGitHubDeviceCodeResponse;
|
||||
|
||||
const button = l10n.t('Copy & Continue to {0}', signInProvider ? GitHubSocialSignInProviderLabels[signInProvider] : l10n.t('GitHub'));
|
||||
const button = l10n.t('Copy & Continue to Browser');
|
||||
const modalResult = await window.showInformationMessage(
|
||||
l10n.t({ message: 'Your Code: {0}', args: [json.user_code], comment: ['The {0} will be a code, e.g. 123-456'] }),
|
||||
{
|
||||
@@ -668,11 +668,6 @@ export const enum GitHubSocialSignInProvider {
|
||||
Apple = 'apple',
|
||||
}
|
||||
|
||||
const GitHubSocialSignInProviderLabels = {
|
||||
[GitHubSocialSignInProvider.Google]: l10n.t('Google'),
|
||||
[GitHubSocialSignInProvider.Apple]: l10n.t('Apple'),
|
||||
};
|
||||
|
||||
export function isSocialSignInProvider(provider: unknown): provider is GitHubSocialSignInProvider {
|
||||
return provider === GitHubSocialSignInProvider.Google || provider === GitHubSocialSignInProvider.Apple;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user