chore: review authentication

pull/28/head
洛竹 3 years ago
parent 00bd0400b2
commit 1b73a55a47

@ -19,14 +19,6 @@ API 列表使用 Typedoc 从 [vscode.d.ts](https://github.com/youngjuning/vscode
2. **开启调试**`yarn dev` 2. **开启调试**`yarn dev`
3. **开启服务**`yarn start` 3. **开启服务**`yarn start`
## 专业术语
- extension扩展
- namespace命名空间
- active editor活动编辑器
- active terminal活动命令行
- Namespace for dealing with xxx用于处理 xxx 的命名空间
## 贡献者 ✨ ## 贡献者 ✨
感谢这些优秀的人 ([emoji key](https://allcontributors.org/docs/en/emoji-key)) 感谢这些优秀的人 ([emoji key](https://allcontributors.org/docs/en/emoji-key))

36
vscode.d.ts vendored

@ -13789,30 +13789,30 @@ export interface AuthenticationProvider {
*/ */
export namespace authentication { export namespace authentication {
/** /**
* session *
* providerId * providerId
* session使 * 使
* *
* Github Microsoft providerId 'github' 'microsoft' * GitHub
* @param providerId 使 id * ID "github" "microsoft"
* @param providerId id
* @param scopes providerId * @param scopes providerId
* @param options 使 {@link GetSessionOptions} * @param options {@link GetSessionOptions}
* @returns thenable session * @returns thenable
*/ */
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>;
/** /**
* 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 * providerId
* 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.
* *
* Currently, there are only two authentication providers that are contributed from built in extensions * GitHub
* to the editor that implement GitHub and Microsoft authentication: their providerId's are 'github' and 'microsoft'. * ID "github" "microsoft"
* @param providerId The id of the provider to use * @param providerId id
* @param scopes A list of scopes representing the permissions requested. These are dependent on the authentication provider * @param scopes providerId
* @param options The {@link GetSessionOptions} to use * @param options {@link GetSessionOptions}
* @returns A thenable that resolves to an authentication session if available, or undefined if there are no sessions * @returns thenable `undefined`
*/ */
export function getSession(providerId: string, scopes: readonly string[], options?: AuthenticationGetSessionOptions): Thenable<AuthenticationSession | undefined>; export function getSession(providerId: string, scopes: readonly string[], options?: AuthenticationGetSessionOptions): Thenable<AuthenticationSession | undefined>;

Loading…
Cancel
Save