Skip to content

Commit

Permalink
Inherit VSCode Proxy configuration for PlatformIO Core
Browse files Browse the repository at this point in the history
  • Loading branch information
ivankravets committed Oct 31, 2022
1 parent 881cadd commit 9e08cf6
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,12 @@ class PlatformIOVSCodeExtension {
if (http_proxy && !process.env.HTTP_PROXY && !process.env.http_proxy) {
extraVars['HTTP_PROXY'] = http_proxy;
}
if (!vscode.workspace.getConfiguration('http').get('proxyStrictSSL')) {
// https://stackoverflow.com/questions/48391750/disable-python-requests-ssl-validation-for-an-imported-module
extraVars['CURL_CA_BUNDLE'] = '';
}
if (http_proxy && !process.env.HTTPS_PROXY && !process.env.https_proxy) {
extraVars['HTTPS_PROXY'] = http_proxy;
}
if (!vscode.workspace.getConfiguration('http').get('proxyStrictSSL')) {
extraVars['PLATFORMIO_SETTING_ENABLE_PROXY_STRICT_SSL'] = 'false';
}
if (this.getSetting('customPyPiIndexUrl')) {
extraVars['PIP_INDEX_URL'] = this.getSetting('customPyPiIndexUrl');
}
Expand Down

0 comments on commit 9e08cf6

Please sign in to comment.