Skip to content

Commit f4d81bc

Browse files
committed
reverting proxy support for extensions, for now
need to fix layer breakers Revert "fix build" This reverts commit 9f5068a. Revert "proxy support for extensions" This reverts commit 612efb5.
1 parent 626a518 commit f4d81bc

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

src/vs/workbench/parts/extensions/electron-browser/extensionsService.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,10 @@ import { assign } from 'vs/base/common/objects';
1616
import { extract, buffer } from 'vs/base/node/zip';
1717
import { Promise, TPromise } from 'vs/base/common/winjs.base';
1818
import { 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';
2020
import { IWorkspaceContextService } from 'vs/workbench/services/workspace/common/contextService';
2121
import { Limiter } from 'vs/base/common/async';
2222
import Event, { Emitter } from 'vs/base/common/event';
23-
import { manager as Settings } from 'vs/workbench/electron-main/settings';
2423

2524
function 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

Comments
 (0)