From 0f5a7d4a1b75f9b26b13efb1a365072887f5eafe Mon Sep 17 00:00:00 2001 From: Baptiste Augrain Date: Fri, 8 Oct 2021 23:14:50 +0200 Subject: [PATCH] fix(1.61): update github authentication patch (#866) --- patches/use-github-pat.patch | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/patches/use-github-pat.patch b/patches/use-github-pat.patch index 81bac0d..856a586 100644 --- a/patches/use-github-pat.patch +++ b/patches/use-github-pat.patch @@ -1,5 +1,5 @@ diff --git a/extensions/github-authentication/src/githubServer.ts b/extensions/github-authentication/src/githubServer.ts -index 3d36081..5bac245 100644 +index 8424f5b..5bac245 100644 --- a/extensions/github-authentication/src/githubServer.ts +++ b/extensions/github-authentication/src/githubServer.ts @@ -6,8 +6,6 @@ @@ -212,11 +212,14 @@ index 3d36081..5bac245 100644 private async manuallyProvideUri() { const uri = await vscode.window.showInputBox({ prompt: 'Uri', -@@ -290,41 +159,7 @@ export class GitHubServer implements IGitHubServer { +@@ -290,44 +159,7 @@ export class GitHubServer implements IGitHubServer { return getUserInfo(token, this.getServerUri('/user'), this._logger); } - public async sendAdditionalTelemetryInfo(token: string): Promise { +- if (!vscode.env.isTelemetryEnabled) { +- return; +- } - const nocors = await this.isNoCorsEnvironment(); - - if (nocors) {