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

Loading…
Cancel
Save