Skip to content

Commit 69be87f

Browse files
committed
Merge branch 'release/v2.1.2'
2 parents a9fb124 + 5211477 commit 69be87f

File tree

4 files changed

+8
-31
lines changed

4 files changed

+8
-31
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# Release Notes
22

3-
## 2.1.1 (2020-10-??)
3+
## 2.1.2 (2020-10-16)
4+
5+
- Do not propagate PlatformIO CLI to a default VSCode's terminal. If you need PlatformIO Core CLI, please open "Left Activity Bar > PlatformIO (icon) > Quick Access > Miscellaneous > PlatformIO Core CLI")
6+
- Fixed a bug with "Cannot find module 'os-tmpdir'"
7+
8+
## 2.1.1 (2020-10-16)
49

510
- Do not patch the global environment PATH with PlatformIO (issues [#2045](https://github.com/platformio/platformio-vscode-ide/issues/2045), [#2046](https://github.com/platformio/platformio-vscode-ide/issues/2046))
611
- Fixed an issue with "Webview is disposed" (issue [#2126](https://github.com/platformio/platformio-vscode-ide/issues/2126))

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "platformio-ide",
3-
"version": "2.1.1",
3+
"version": "2.1.2",
44
"publisher": "platformio",
55
"engines": {
66
"vscode": "^1.44.0"
@@ -626,7 +626,7 @@
626626
},
627627
"dependencies": {
628628
"fs-plus": "~3.1.1",
629-
"platformio-node-helpers": "~8.0.0",
629+
"platformio-node-helpers": "~8.0.1",
630630
"platformio-vscode-debug": "~1.2.11"
631631
},
632632
"extensionDependencies": [

src/main.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ class PlatformIOVSCodeExtension {
5959

6060
this.patchOSEnviron();
6161
await this.startInstaller();
62-
PIOTerminal.patchGlobalEnv(this.context);
6362
this.subscriptions.push(this.handleUseDevelopmentPIOCoreConfiguration());
6463

6564
vscode.commands.executeCommand('setContext', 'pioCoreReady', true);

src/terminal.js

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -9,33 +9,6 @@
99
import vscode from 'vscode';
1010

1111
export default class PIOTerminal {
12-
static patchGlobalEnv(context) {
13-
const envCollection = context.environmentVariableCollection;
14-
if (!envCollection) {
15-
return;
16-
}
17-
const names = [
18-
'PLATFORMIO_CALLER',
19-
'PLATFORMIO_IDE',
20-
'PATH',
21-
'Path',
22-
'HTTP_PROXY',
23-
'HTTPS_PROXY',
24-
'NO_PROXY',
25-
'CURL_CA_BUNDLE',
26-
];
27-
for (const name of names) {
28-
if (process.env[name]) {
29-
envCollection.replace(
30-
name,
31-
process.env.PLATFORMIO_PATH && ['PATH', 'Path'].includes(name)
32-
? process.env.PLATFORMIO_PATH
33-
: process.env[name]
34-
);
35-
}
36-
}
37-
}
38-
3912
constructor() {
4013
this._instance = undefined;
4114
}

0 commit comments

Comments
 (0)