There was an error while loading. Please reload this page.
1 parent 4f6e862 commit 153fa94Copy full SHA for 153fa94
src/client/common/installer.ts
@@ -142,6 +142,15 @@ export class Installer {
142
}
143
144
let installArgs = ProductInstallScripts.get(product);
145
+ let pipIndex = installArgs.indexOf('pip');
146
+ if (pipIndex > 0) {
147
+ installArgs = installArgs.slice();
148
+ let proxy = vscode.workspace.getConfiguration('http').get('proxy', '');
149
+ if (proxy.length > 0) {
150
+ installArgs.splice(2, 0, proxy);
151
+ installArgs.splice(2, 0, '--proxy');
152
+ }
153
154
const pythonPath = settings.PythonSettings.getInstance().pythonPath;
155
156
if (this.outputChannel && installArgs[0] === '-m') {
0 commit comments