I managed to debug the issue - it seems like tunnel-agent expects request options to contain references to .host and .port directly at top dictionary level while somehow in current vscode npm modules options has it wrapped into a contained host dictionary:
Hello,
I've had problems building VSCode behind the HTTP+HTTPS proxy related to
tunnel-agent
, details here: https://github.com/Microsoft/vscode/issues/24805Summary of the problem:
I managed to debug the issue - it seems like
tunnel-agent
expects requestoptions
to contain references to.host
and.port
directly at top dictionary level while somehow in current vscode npm modulesoptions
has it wrapped into a containedhost
dictionary:Changing file
vscode\node_modules\tunnel-agent\index.js
, functioncreateSocket
from:to
and in
createSecureSocket
from:to
fixed the issue, after that
npm install vscode-ripgrep@0.0.11
worked without a problem.To reiterate, this only happens behind http+https proxy. I've built vscode at home while not behind the proxy and it all worked without a hitch.