SqrTT / prophet

Prophet Debugger (SFCC sandboxes via SDAPI 2.0) extension for VS Code
https://marketplace.visualstudio.com/items?itemName=SqrTT.prophet
Other
144 stars 59 forks source link

Toggle for watch and upload changes files only #381

Open AsgharCeethirakthu opened 22 hours ago

AsgharCeethirakthu commented 22 hours ago

Is your feature request related to a problem? Please describe.

Whenever I run build I have multiple file changes prophet starts uploading the entire cartridges list. Sometimes build wouldn't have completely finished but prophet already started uploading. My changes are only on one cartridge and why upload everything every time.

Describe the solution you'd like

A toggle or an option on command palette to enable upload only changed files. So I can enable this and only when I need whole cartridge upload I can use clean upload option.

Describe alternatives you've considered

Every time automatic cartridges upload starts I cancel and it only uploads changed files

Additional context

Issue happens mostly multiple scss files compiles on build, I intend to upload only the changed files. Now I cannot use npm run watch here as I am using some extra sass plugins to compile locale specific files and npm run watch won't work there. This can be an issue on common case as well when a cartridge with few files updates, uploading all cartridges not needed.

SqrTT commented 9 hours ago

the extension upload file one by one. It uploads a whole cartridge only as fallback in case upload single file fails. Please, investigate logs output to identify why upload single file is falling.

PS. Is there change that your build tool create some temporary files and then remove them while the extension tries to upload?