Skip to content

Commit 835414c

Browse files
committed
Added new "platformio-ide.uploadAndMonitor" command to "Upload and Monitor" // Issue platformio#1697
1 parent 7991f63 commit 835414c

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release Notes
22

3+
## 3.0.1 (2023-??-??)
4+
5+
* Added new ``platformio-ide.uploadAndMonitor`` command to "Upload and Monitor" active environment (useful for custom PlatformIO Toolbar) (issue [#1697](https://github.com/platformio/platformio-vscode-ide/issues/1697))
6+
37
## 3.0.0 (2023-02-01)
48

59
**Requires PlatformIO Core 6.1.6 + VSCode 1.65 or above**

package.json

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,21 +151,28 @@
151151
},
152152
{
153153
"command": "platformio-ide.build",
154-
"title": "Build",
154+
"title": "Build active environment",
155155
"category": "PlatformIO",
156156
"icon": "$(check)",
157157
"enablement": "pioProjectReady"
158158
},
159159
{
160160
"command": "platformio-ide.upload",
161-
"title": "Upload",
161+
"title": "Upload active environment",
162+
"category": "PlatformIO",
163+
"icon": "$(arrow-right)",
164+
"enablement": "pioProjectReady"
165+
},
166+
{
167+
"command": "platformio-ide.uploadAndMonitor",
168+
"title": "Upload and Monitor active environment",
162169
"category": "PlatformIO",
163170
"icon": "$(arrow-right)",
164171
"enablement": "pioProjectReady"
165172
},
166173
{
167174
"command": "platformio-ide.clean",
168-
"title": "Clean",
175+
"title": "Clean active environment",
169176
"category": "PlatformIO",
170177
"icon": "$(trashcan)",
171178
"enablement": "pioProjectReady"

src/project/tasks.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,9 @@ export default class ProjectTaskManager {
242242
vscode.commands.registerCommand('platformio-ide.upload', () =>
243243
_runTask('Upload')
244244
),
245+
vscode.commands.registerCommand('platformio-ide.uploadAndMonitor', () =>
246+
_runTask('Upload and Monitor')
247+
),
245248
vscode.commands.registerCommand('platformio-ide.test', () => _runTask('Test')),
246249
vscode.commands.registerCommand('platformio-ide.clean', () => _runTask('Clean')),
247250
vscode.commands.registerCommand('platformio-ide.serialMonitor', () =>

0 commit comments

Comments
 (0)