@@ -16,7 +16,7 @@ import * as vscode from 'vscode';
1616import { CppToolsApi , CppToolsExtension } from 'vscode-cpptools' ;
1717import { getTemporaryCommandRegistrarInstance , initializeTemporaryCommandRegistrar } from './commands' ;
1818import { PlatformInformation } from './platform' ;
19- import { PackageManager , PackageManagerError , PackageManagerWebResponseError , IPackage } from './packageManager' ;
19+ import { PackageManager , PackageManagerError , IPackage } from './packageManager' ;
2020import { PersistentState } from './LanguageServer/persistentState' ;
2121import { getInstallationInformation , InstallationInformation , setInstallationStage } from './installationInformation' ;
2222import { 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