Skip to content

Commit 0a9a261

Browse files
committed
Allow a user to choose to not sign in
1 parent c32fc8d commit 0a9a261

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/auth/auth.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ export async function getSession(): Promise<vscode.AuthenticationSession | undef
3939
if (result === signInAction) {
4040
return await getSessionInternal(true);
4141
}
42-
throw new Error(SESSION_ERROR);
42+
43+
// User chose to not sign in
44+
return undefined;
4345
}
4446

4547
async function getSessionInternal(forceNewMessage: string): Promise<vscode.AuthenticationSession | undefined>;

0 commit comments

Comments
 (0)