Skip to content

Commit fa82c0d

Browse files
committed
Added named status bars: "PlatformIO: Toolbar" and "PlatformIO: Project Environment Switcher" // Resolve platformio#2593
1 parent 7653a2e commit fa82c0d

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

CHANGELOG.md

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

3-
## 2.3.5 (2021-11-??)
3+
## 2.4.0 (2021-11-??)
44

5+
**Requires VSCode 1.57 or above**
6+
7+
- 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))
58
- Added "Verbose Check" project task
69
- 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))
710
- Handle "Could not find distutils module" error on Linux
11+
- 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))
812

913
## 2.3.4 (2021-10-19)
1014

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "2.3.4",
44
"publisher": "platformio",
55
"engines": {
6-
"vscode": "^1.44.0"
6+
"vscode": "^1.57.0"
77
},
88
"license": "Apache-2.0",
99
"displayName": "PlatformIO IDE",
@@ -647,13 +647,13 @@
647647
"@babel/plugin-proposal-class-properties": "~7.16.0",
648648
"@babel/preset-env": "~7.16.0",
649649
"@types/node": "~12",
650-
"@types/vscode": "~1.44.0",
650+
"@types/vscode": "~1.57.0",
651651
"babel-loader": "~8.2.3",
652652
"eslint": "~8.1.0",
653653
"eslint-import-resolver-webpack": "~0.13.2",
654654
"eslint-plugin-import": "~2.25.2",
655655
"prettier": "~2.4.1",
656-
"vsce": "~1.101.0",
656+
"vsce": "~1.103.0",
657657
"webpack": "~5.61.0",
658658
"webpack-cli": "~4.9.1"
659659
},

src/main.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,9 +295,11 @@ class PlatformIOVSCodeExtension {
295295
.forEach((item, index) => {
296296
const [text, tooltip, command] = item;
297297
const sbItem = vscode.window.createStatusBarItem(
298+
'pio-toolbar',
298299
vscode.StatusBarAlignment.Left,
299300
STATUS_BAR_PRIORITY_START + index + 1
300301
);
302+
sbItem.name = 'PlatformIO: Toolbar';
301303
sbItem.text = text;
302304
sbItem.tooltip = tooltip;
303305
sbItem.command = command;

src/project/observable.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,9 +253,11 @@ export default class ProjectObservable {
253253

254254
registerEnvSwitcher() {
255255
this._sbEnvSwitcher = vscode.window.createStatusBarItem(
256+
'pio-env-switcher',
256257
vscode.StatusBarAlignment.Left,
257258
STATUS_BAR_PRIORITY_START
258259
);
260+
this._sbEnvSwitcher.name = 'PlatformIO: Project Environment Switcher';
259261
this._sbEnvSwitcher.tooltip = 'Switch PlatformIO Project Environment';
260262
this._sbEnvSwitcher.command = 'platformio-ide.switchProjectEnv';
261263
this._sbEnvSwitcher.text = '$(root-folder) Loading...';

0 commit comments

Comments
 (0)