feat: 翻译校验身份命名空间

翻译身份验证命名空间,完成 getSession 方法翻译
pull/26/head
cxk 3 years ago
parent 13397181b3
commit 19066609d7

20
vscode.d.ts vendored

@ -13784,22 +13784,20 @@ export interface AuthenticationProvider {
/**
* Namespace for authentication.
*
* @maintainer {@link https://github.com/cxk0831 @cxk0831}
*/
export namespace authentication {
/**
* Get an authentication session matching the desired scopes. Rejects if a provider with providerId is not
* registered, or if the user does not consent to sharing authentication information with
* the extension. If there are multiple sessions with the same scopes, the user will be shown a
* quickpick to select which account they would like to use.
* session
* providerId
* session使
*
* Currently, there are only two authentication providers that are contributed from built in extensions
* to the editor that implement GitHub and Microsoft authentication: their providerId's are 'github' and 'microsoft'.
* @param providerId The id of the provider to use
* @param scopes A list of scopes representing the permissions requested. These are dependent on the authentication provider
* @param options The {@link GetSessionOptions} to use
* @returns A thenable that resolves to an authentication session
* Github Microsoft providerId 'github' 'microsoft'
* @param providerId 使 id
* @param scopes providerId
* @param options 使 {@link GetSessionOptions}
* @returns thenable session
*/
export function getSession(providerId: string, scopes: readonly string[], options: AuthenticationGetSessionOptions & { createIfNone: true }): Thenable<AuthenticationSession>;

Loading…
Cancel
Save