Skip to content

Commit 95d7f28

Browse files
committed
Automatically switch to newly created project's environment // Resolve platformio#2414
1 parent fa82c0d commit 95d7f28

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
- Added named status bars: "PlatformIO: Toolbar" and "PlatformIO: Project Environment Switcher" (ability to hide them separately) (issue [#2593](https://github.com/platformio/platformio-vscode-ide/issues/2593))
88
- Added "Verbose Check" project task
99
- Synchronize VSCode workspaces with PlatformIO Home Projects (requires PlatformIO Core 5.2.3 or above) (issue [#1367](https://github.com/platformio/platformio-vscode-ide/issues/1367))
10+
- Automatically switch to newly created project's environment (issue [#2414](https://github.com/platformio/platformio-vscode-ide/issues/2414))
1011
- Handle "Could not find distutils module" error on Linux
1112
- Fixed an issue when "Copy to Clipboard" does not work in PlatformIO Home on macOS (requires PlatformIO Core 5.2.3 or above) (issue [#2570](https://github.com/platformio/platformio-vscode-ide/issues/2570))
1213

src/home.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ export default class PIOHome {
156156
'activeEnv',
157157
undefined
158158
);
159+
extension.projectObservable.switchToProject(vscode.Uri.file(params).fsPath);
159160
}
160161
this.disposePanel();
161162
if (vscode.workspace.workspaceFolders) {

0 commit comments

Comments
 (0)