@@ -16,11 +16,10 @@ import { assign } from 'vs/base/common/objects';
1616import { extract , buffer } from 'vs/base/node/zip' ;
1717import { Promise , TPromise } from 'vs/base/common/winjs.base' ;
1818import { IExtensionsService , IExtension , IExtensionManifest , IGalleryInformation } from 'vs/workbench/parts/extensions/common/extensions' ;
19- import { download , getProxyAgent , getSystemProxyAgent } from 'vs/base/node/request' ;
19+ import { download } from 'vs/base/node/request' ;
2020import { IWorkspaceContextService } from 'vs/workbench/services/workspace/common/contextService' ;
2121import { Limiter } from 'vs/base/common/async' ;
2222import Event , { Emitter } from 'vs/base/common/event' ;
23- import { manager as Settings } from 'vs/workbench/electron-main/settings' ;
2423
2524function parseManifest ( raw : string ) : TPromise < IExtensionManifest > {
2625 return new Promise ( ( c , e ) => {
@@ -116,15 +115,12 @@ export class ExtensionsService implements IExtensionsService {
116115 return TPromise . wrapError ( new Error ( nls . localize ( 'missingGalleryInformation' , "Gallery information is missing" ) ) ) ;
117116 }
118117
119- const httpProxySettings = Settings . getValue ( 'http.proxy' ) ;
120- const getAgent = url => httpProxySettings ? getProxyAgent ( url , httpProxySettings ) : getSystemProxyAgent ( url ) ;
121-
122118 const url = `${ galleryInformation . galleryApiUrl } /publisher/${ extension . publisher } /extension/${ extension . name } /latest/assetbyname/Microsoft.VisualStudio.Services.VSIXPackage?install=true` ;
123119 const zipPath = path . join ( tmpdir ( ) , galleryInformation . id ) ;
124120 const extensionPath = path . join ( this . extensionsPath , `${ extension . publisher } .${ extension . name } ` ) ;
125121 const manifestPath = path . join ( extensionPath , 'package.json' ) ;
126122
127- return download ( zipPath , { url : url , agent : getAgent ( url ) } )
123+ return download ( zipPath , { url } )
128124 . then ( ( ) => validate ( zipPath , extension ) )
129125 . then ( manifest => { this . _onInstallExtension . fire ( manifest ) ; return manifest ; } )
130126 . then ( manifest => extract ( zipPath , extensionPath , { sourcePath : 'extension' , overwrite : true } ) . then ( ( ) => manifest ) )
0 commit comments