From 6a6b9a5cc89529fcf8db1f96a42966832a64d8d3 Mon Sep 17 00:00:00 2001 From: Rachel Macfarlane Date: Mon, 22 Feb 2021 15:44:24 -0800 Subject: [PATCH] Possible fix for #115918 --- extensions/github-authentication/src/githubServer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/github-authentication/src/githubServer.ts b/extensions/github-authentication/src/githubServer.ts index 36694fbf0ce..b5281ac9d55 100644 --- a/extensions/github-authentication/src/githubServer.ts +++ b/extensions/github-authentication/src/githubServer.ts @@ -160,7 +160,7 @@ export class GitHubServer { } try { - const uri = vscode.Uri.parse(uriOrToken); + const uri = vscode.Uri.parse(uriOrToken.trim()); if (!uri.scheme || uri.scheme === 'file') { throw new Error; } uriHandler.handleUri(uri); } catch (e) {