Skip to content

Commit

Permalink
fix: upload project should be sync project
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobrosenberg committed Apr 12, 2022
1 parent 786f24c commit 3207e12
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@
{
"command": "pymakr.uploadProject",
"shortTitle": "Upload",
"title": "Upload project to device",
"title": "Sync project to device",
"icon": "$(cloud-upload)"
},
{
Expand Down
5 changes: 4 additions & 1 deletion src/commands/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,10 @@ class Commands {
* Uploads parent project to the device. Can only be accessed from devices in the projects view.
* @param {ProjectDeviceTreeItem} treeItem
*/
uploadProject: ({ device, project }) => device.upload(project.folder, "/"),
uploadProject: async ({ device, project }) => {
await device.adapter.remove("/flash", true);
device.upload(project.folder, "/");
},

/**
* Prompts for a device and destination for uploading a file or folder
Expand Down

0 comments on commit 3207e12

Please sign in to comment.