Auth session API fix (#125792)

* Adjust "provider is not registered" exception behavior

* Process cancellation in GH auth provider

`e.message` is always `undefined`
This commit is contained in:
Oleg Demchenko
2021-06-10 13:14:08 -07:00
committed by GitHub
parent 32d29d7126
commit 61f34055fa
2 changed files with 7 additions and 7 deletions

View File

@@ -209,7 +209,7 @@ export class GitHubAuthenticationProvider implements vscode.AuthenticationProvid
return session;
} catch (e) {
// If login was cancelled, do not notify user.
if (e.message === 'Cancelled') {
if (e === 'Cancelled') {
/* __GDPR__
"loginCancelled" : { }
*/