Skip to content

Commit a2eff52

Browse files
committed
Merge branch 'hotfix/v2.5.5'
2 parents c143cad + 5d5cba2 commit a2eff52

File tree

5 files changed

+17
-13
lines changed

5 files changed

+17
-13
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Release Notes
22

3+
## 2.5.5 (2022-10-31)
4+
5+
- Inherit VSCode Proxy configuration for PlatformIO Core (requires PlatformIO Core 6.1.5+)
6+
- Fixed an issue with passing VSCode environment variables to the terminal processes (issue [#3287](https://github.com/platformio/platformio-vscode-ide/issues/3287))
7+
38
## 2.5.4 (2022-09-03)
49

510
- Keep using legacy API for calling VSCode tasks

package.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "platformio-ide",
3-
"version": "2.5.4",
3+
"version": "2.5.5",
44
"publisher": "platformio",
55
"engines": {
66
"vscode": "^1.63.0"
@@ -627,22 +627,22 @@
627627
},
628628
"dependencies": {
629629
"fs-plus": "~3.1.1",
630-
"platformio-node-helpers": "~9.6.0",
630+
"platformio-node-helpers": "~9.6.1",
631631
"platformio-vscode-debug": "~1.4.1"
632632
},
633633
"devDependencies": {
634-
"@babel/core": "~7.18.13",
635-
"@babel/eslint-parser": "~7.18.9",
634+
"@babel/core": "~7.19.6",
635+
"@babel/eslint-parser": "~7.19.1",
636636
"@babel/plugin-proposal-class-properties": "~7.18.6",
637-
"@babel/preset-env": "~7.18.10",
637+
"@babel/preset-env": "~7.19.4",
638638
"@types/node": "~14",
639639
"@types/vscode": "~1.63.0",
640640
"babel-loader": "~8.2.5",
641-
"eslint": "~8.23.0",
641+
"eslint": "~8.26.0",
642642
"eslint-import-resolver-webpack": "~0.13.2",
643643
"eslint-plugin-import": "~2.26.0",
644644
"prettier": "~2.7.1",
645-
"vsce": "~2.11.0",
645+
"vsce": "~2.13.0",
646646
"webpack": "~5.74.0",
647647
"webpack-cli": "~4.10.0"
648648
},

src/main.js

+3-4
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
}

src/project/tasks.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export default class ProjectTaskManager {
109109
}
110110

111111
toVSCodeTask(projectTask) {
112-
const envClone = Object.create(process.env);
112+
const envClone = Object.assign({}, process.env);
113113
if (process.env.PLATFORMIO_PATH) {
114114
envClone.PATH = process.env.PLATFORMIO_PATH;
115115
envClone.Path = process.env.PLATFORMIO_PATH;

src/terminal.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default class PIOTerminal {
1414
}
1515

1616
new() {
17-
const envClone = Object.create(process.env);
17+
const envClone = Object.assign({}, process.env);
1818
if (process.env.PLATFORMIO_PATH) {
1919
envClone.PATH = process.env.PLATFORMIO_PATH;
2020
envClone.Path = process.env.PLATFORMIO_PATH;

0 commit comments

Comments
 (0)