Skip to content

Commit d7d82fa

Browse files
Ensure forceNewSession overload gets picked first (microsoft#138685) (microsoft#138782)
Co-authored-by: Joyce Er <[email protected]>
1 parent 8039072 commit d7d82fa

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/vscode-dts/vscode.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14079,9 +14079,9 @@ declare module 'vscode' {
1407914079
* @param providerId The id of the provider to use
1408014080
* @param scopes A list of scopes representing the permissions requested. These are dependent on the authentication provider
1408114081
* @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
1408314083
*/
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>;
1408514085

1408614086
/**
1408714087
* Get an authentication session matching the desired scopes. Rejects if a provider with providerId is not
@@ -14094,9 +14094,9 @@ declare module 'vscode' {
1409414094
* @param providerId The id of the provider to use
1409514095
* @param scopes A list of scopes representing the permissions requested. These are dependent on the authentication provider
1409614096
* @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
1409814098
*/
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>;
1410014100

1410114101
/**
1410214102
* An {@link Event} which fires when the authentication sessions of an authentication provider have

0 commit comments

Comments
 (0)