Skip to content

Commit 3a43a12

Browse files
committed
Added new platformio-ide.uploadAndMonitor command to "Upload and Monitor" active environment (useful for custom PlatformIO Toolbar)
1 parent 0f7a505 commit 3a43a12

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
## 3.1.1 (2023-03-??)
44

5-
* Fixed a regression bug where running the same "monitor" causes the notification that the task "is already active" (issue [#3656](https://github.com/platformio/platformio-vscode-ide/issues/3656))
5+
* Added new ``platformio-ide.uploadAndMonitor`` command to "Upload and Monitor" active environment (useful for custom [PlatformIO Toolbar](https://docs.platformio.org/en/latest/integration/ide/vscode.html#platformio-toolbar))
6+
* Fixed a regression bug where running the same "device monitor" causes the notification that the task "is already active" (issue [#3656](https://github.com/platformio/platformio-vscode-ide/issues/3656))
67

78
## 3.1.0 (2023-03-13)
89

package.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,13 @@
154154
"icon": "$(arrow-right)",
155155
"enablement": "pioProjectReady"
156156
},
157+
{
158+
"command": "platformio-ide.uploadAndMonitor",
159+
"title": "Upload and Monitor active environment",
160+
"category": "PlatformIO",
161+
"icon": "$(arrow-right)",
162+
"enablement": "pioProjectReady"
163+
},
157164
{
158165
"command": "platformio-ide.clean",
159166
"title": "Clean active environment",

src/project/tasks.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,9 @@ export default class ProjectTaskManager {
249249
vscode.commands.registerCommand('platformio-ide.upload', () =>
250250
_runTask('Upload')
251251
),
252+
vscode.commands.registerCommand('platformio-ide.uploadAndMonitor', () =>
253+
_runTask('Upload and Monitor')
254+
),
252255
vscode.commands.registerCommand('platformio-ide.clean', () => _runTask('Clean')),
253256
vscode.commands.registerCommand('platformio-ide.test', () => _runTask('Test')),
254257
vscode.commands.registerCommand('platformio-ide.serialMonitor', () =>

0 commit comments

Comments
 (0)