Skip to content

Commit 153fa94

Browse files
committed
fix #778
1 parent 4f6e862 commit 153fa94

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/client/common/installer.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,15 @@ export class Installer {
142142
}
143143

144144
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+
}
145154
const pythonPath = settings.PythonSettings.getInstance().pythonPath;
146155

147156
if (this.outputChannel && installArgs[0] === '-m') {

0 commit comments

Comments
 (0)