@@ -14079,9 +14079,9 @@ declare module 'vscode' {
14079
14079
* @param providerId The id of the provider to use
14080
14080
* @param scopes A list of scopes representing the permissions requested. These are dependent on the authentication provider
14081
14081
* @param options The {@link AuthenticationGetSessionOptions} to use
14082
- * @returns A thenable that resolves to an authentication session if available, or undefined if there are no sessions
14082
+ * @returns A thenable that resolves to an authentication session
14083
14083
*/
14084
- export function getSession(providerId: string, scopes: readonly string[], options? : AuthenticationGetSessionOptions): Thenable<AuthenticationSession | undefined >;
14084
+ export function getSession(providerId: string, scopes: readonly string[], options: AuthenticationGetSessionOptions & { forceNewSession: true | { detail: string } } ): Thenable<AuthenticationSession>;
14085
14085
14086
14086
/**
14087
14087
* Get an authentication session matching the desired scopes. Rejects if a provider with providerId is not
@@ -14094,9 +14094,9 @@ declare module 'vscode' {
14094
14094
* @param providerId The id of the provider to use
14095
14095
* @param scopes A list of scopes representing the permissions requested. These are dependent on the authentication provider
14096
14096
* @param options The {@link AuthenticationGetSessionOptions} to use
14097
- * @returns A thenable that resolves to an authentication session
14097
+ * @returns A thenable that resolves to an authentication session if available, or undefined if there are no sessions
14098
14098
*/
14099
- export function getSession(providerId: string, scopes: readonly string[], options: AuthenticationGetSessionOptions & { forceNewSession: true | { detail: string } } ): Thenable<AuthenticationSession>;
14099
+ export function getSession(providerId: string, scopes: readonly string[], options? : AuthenticationGetSessionOptions): Thenable<AuthenticationSession | undefined >;
14100
14100
14101
14101
/**
14102
14102
* An {@link Event} which fires when the authentication sessions of an authentication provider have
0 commit comments