Skip to content

Commit 28981f3

Browse files
authored
remove telemetry that is already being blocked (#2603)
1 parent 775aba8 commit 28981f3

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

Extension/src/main.ts

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import * as vscode from 'vscode';
1616
import { CppToolsApi, CppToolsExtension } from 'vscode-cpptools';
1717
import { getTemporaryCommandRegistrarInstance, initializeTemporaryCommandRegistrar } from './commands';
1818
import { PlatformInformation } from './platform';
19-
import { PackageManager, PackageManagerError, PackageManagerWebResponseError, IPackage } from './packageManager';
19+
import { PackageManager, PackageManagerError, IPackage } from './packageManager';
2020
import { PersistentState } from './LanguageServer/persistentState';
2121
import { getInstallationInformation, InstallationInformation, setInstallationStage } from './installationInformation';
2222
import { Logger, getOutputChannelLogger, showOutputChannel } from './logger';
@@ -192,17 +192,6 @@ function handleError(error: any): void {
192192
let errorMessage: string;
193193

194194
if (error instanceof PackageManagerError) {
195-
// If this is a WebResponse error, log the IP that it resolved from the package URL
196-
if (error instanceof PackageManagerWebResponseError) {
197-
let webRequestPackageError: PackageManagerWebResponseError = error;
198-
if (webRequestPackageError.socket) {
199-
let address: any = webRequestPackageError.socket.address();
200-
if (address) {
201-
installationInformation.telemetryProperties['error.targetIP'] = address.address + ':' + address.port;
202-
}
203-
}
204-
}
205-
206195
let packageError: PackageManagerError = error;
207196

208197
installationInformation.telemetryProperties['error.methodName'] = packageError.methodName;

0 commit comments

Comments
 (0)