Skip to content

Commit 6ff3cb7

Browse files
author
Rachel Macfarlane
committed
Add deprecated to old providerIds authentication method
1 parent 08ed2b6 commit 6ff3cb7

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

src/vs/vscode.proposed.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,13 +176,14 @@ declare module 'vscode' {
176176
export function getProviderIds(): Thenable<ReadonlyArray<string>>;
177177

178178
/**
179+
* @deprecated
179180
* An array of the ids of authentication providers that are currently registered.
180181
*/
181182
export const providerIds: string[];
182183

183184
/**
184185
* Returns whether a provider has any sessions matching the requested scopes. This request
185-
* is transparent to the user, not UI is shown. Rejects if a provider with providerId is not
186+
* is transparent to the user, no UI is shown. Rejects if a provider with providerId is not
186187
* registered.
187188
* @param providerId The id of the provider
188189
* @param scopes A list of scopes representing the permissions requested. These are dependent on the authentication

src/vs/workbench/services/authentication/browser/authenticationService.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,13 @@ export class AuthenticationService extends Disposable implements IAuthentication
237237
group: '2_signInRequests',
238238
command: {
239239
id: `${extensionId}signIn`,
240-
title: nls.localize('signInRequest', "Sign in to use {0} (1)", extensionName)
240+
title: nls.localize(
241+
{
242+
key: 'signInRequest',
243+
comment: ['The placeholder {0} will be replaced with an extension name. (1) is to indicate that this menu item contributes to a badge count.']
244+
},
245+
"Sign in to use {0} (1)",
246+
extensionName)
241247
}
242248
});
243249

0 commit comments

Comments
 (0)