fix(1.61): update github authentication patch (#866)

This commit is contained in:
Baptiste Augrain
2021-10-08 23:14:50 +02:00
committed by GitHub
parent 02cc193086
commit 0f5a7d4a1b

View File

@@ -1,5 +1,5 @@
diff --git a/extensions/github-authentication/src/githubServer.ts b/extensions/github-authentication/src/githubServer.ts 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 --- a/extensions/github-authentication/src/githubServer.ts
+++ b/extensions/github-authentication/src/githubServer.ts +++ b/extensions/github-authentication/src/githubServer.ts
@@ -6,8 +6,6 @@ @@ -6,8 +6,6 @@
@@ -212,11 +212,14 @@ index 3d36081..5bac245 100644
private async manuallyProvideUri() { private async manuallyProvideUri() {
const uri = await vscode.window.showInputBox({ const uri = await vscode.window.showInputBox({
prompt: 'Uri', 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); return getUserInfo(token, this.getServerUri('/user'), this._logger);
} }
- public async sendAdditionalTelemetryInfo(token: string): Promise<void> { - public async sendAdditionalTelemetryInfo(token: string): Promise<void> {
- if (!vscode.env.isTelemetryEnabled) {
- return;
- }
- const nocors = await this.isNoCorsEnvironment(); - const nocors = await this.isNoCorsEnvironment();
- -
- if (nocors) { - if (nocors) {