Skip to content

Commit 9e08cf6

Browse files
committed
Inherit VSCode Proxy configuration for PlatformIO Core
1 parent 881cadd commit 9e08cf6

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/main.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,13 +132,12 @@ class PlatformIOVSCodeExtension {
132132
if (http_proxy && !process.env.HTTP_PROXY && !process.env.http_proxy) {
133133
extraVars['HTTP_PROXY'] = http_proxy;
134134
}
135-
if (!vscode.workspace.getConfiguration('http').get('proxyStrictSSL')) {
136-
// https://stackoverflow.com/questions/48391750/disable-python-requests-ssl-validation-for-an-imported-module
137-
extraVars['CURL_CA_BUNDLE'] = '';
138-
}
139135
if (http_proxy && !process.env.HTTPS_PROXY && !process.env.https_proxy) {
140136
extraVars['HTTPS_PROXY'] = http_proxy;
141137
}
138+
if (!vscode.workspace.getConfiguration('http').get('proxyStrictSSL')) {
139+
extraVars['PLATFORMIO_SETTING_ENABLE_PROXY_STRICT_SSL'] = 'false';
140+
}
142141
if (this.getSetting('customPyPiIndexUrl')) {
143142
extraVars['PIP_INDEX_URL'] = this.getSetting('customPyPiIndexUrl');
144143
}

0 commit comments

Comments
 (0)