Bizcuit / vscode-ampscript

This extension allows you to connect Visual Studio Code directly to your MC Account, enables syntax highlighting for AMPScript, has built-in documentation for all AMPScript functions and also adds code snippets for language elements and functions.
MIT License
58 stars 14 forks source link

Download Content Locally #17

Open nathandotjpeg opened 3 years ago

nathandotjpeg commented 3 years ago

When downloading all the content only the folders are saved and none of the actual files that are within those folders. Has anyone else had this issue?

nathandotjpeg commented 3 years ago

The main goal I am trying to solve for is to stage all changes in a repository before pushing them back into SFMC, is this possible with this app? If so, how have people implemented it?

Bizcuit commented 3 years ago

Hi @iamnathan123 So you basically want to sync all the files to the local file system, right? If so, this functionality is not available at the moment, however I was thinking of it as a next step. It should not be smth too hard to do. Feel free to share your ideas on how exactly it should work.

vandenb commented 2 years ago

I would love it when syncing to local would be possible. One of the shortcomings of Marketing Cloud would be version control. I stumbled upon your extension through this webpage: https://vijayasankarn.wordpress.com/2020/12/01/marketing-cloud-version-control-system-for-developers/ and Vijaya suggests downloading a copy, but that's a bit messy.

I don't have any suggestions on how you would do it because I am not a developer, but I would be very, very happy when I could change something in my files and then in the same environment I could stage/commit my changes.

I'm keeping my fingers crossed :-)

mdenavac commented 2 years ago

If I may, this interests me a lot too. Having no idea how far it is from being a possibility, I suggest to build upon the virtual filesystem concept and add the bits to mount it as a disk. Using fuse or the likes. Makes sense ? Could be a low hanging fruit. Anyway thanks so much for this extension. Would be happy to help.

Bizcuit commented 2 years ago

Hi @mdenavac I was planning to add an optional local disk path to the connection props in connection manager. Every time you open a file it will dump a copy to this local folder. Does it make sense?

mdenavac commented 2 years ago

Yeah why not I would use the local folder something like the following workflow:

  1. open remote file in vs
  2. save it writes it on disk, then pushes the file in MC
  3. add and commit

Means you would have to deal with existing files in the folder and some sort of sync upon extension activate call. And write the "virtual folders" as well. Dumping only saved files. Then use the download feature for all repo.

What do you think ?