Skip to content

Commit e806b1b

Browse files
authored
GitHub - only prompt once to authenticate in the avatar provider (microsoft#249785)
1 parent 74a3f54 commit e806b1b

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

extensions/github/src/auth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export async function getOctokitGraphql(): Promise<graphql> {
7777
})
7878
.then(null, async err => {
7979
_octokitGraphql = undefined;
80-
throw err;
80+
throw new AuthenticationError(err.message);
8181
});
8282
}
8383

extensions/github/src/historyItemDetailsProvider.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@ export class GitHubSourceControlHistoryItemDetailsProvider implements SourceCont
117117
return undefined;
118118
}
119119

120-
121120
try {
122121
const logs = { cached: 0, email: 0, github: 0, incomplete: 0 };
123122

0 commit comments

Comments
 (0)