We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c32fc8d commit 0a9a261Copy full SHA for 0a9a261
1 file changed
src/auth/auth.ts
@@ -39,7 +39,9 @@ export async function getSession(): Promise<vscode.AuthenticationSession | undef
39
if (result === signInAction) {
40
return await getSessionInternal(true);
41
}
42
- throw new Error(SESSION_ERROR);
+
43
+ // User chose to not sign in
44
+ return undefined;
45
46
47
async function getSessionInternal(forceNewMessage: string): Promise<vscode.AuthenticationSession | undefined>;
0 commit comments