swdc-vscode-100-days-of-code icon indicating copy to clipboard operation
swdc-vscode-100-days-of-code copied to clipboard

allow setting the storage path

Open sheldonhull opened this issue 5 years ago • 1 comments

First, thanks for this great project!

https://github.com/swdotcom/swdc-vscode-100-days-of-code/blob/250a46b45780f619d77ba1d99467a50fcaf27ce7/src/utils/Util.ts#L23

  1. I believe forward slash is valid for windows paths, as all my scripts typically use forward slash to be cross compatible with Linux, MacOS, and Windows.
  2. The storage path is fixed to the user home directory. This caused me some initial confusion as I was trying to indentify the path the log was stored to make sure it was backed up. In my case, I have a home/work pc and assumed this was stored in the extension data that is backed up, which it doesn't seem to.

Consider allowing this to be set for target path, so that I could use: C:\Users\username\AppData\Roaming\Code - Insiders\User\. Not sure if this would be globalStorage, workspaceStorage, or if you can create your own directory in there, or what.

For those using the sync extension, or the new visual studio code insiders preferences sync, this would ensure the log is backed up as part of that.

sheldonhull avatar Jul 22 '20 04:07 sheldonhull

Thanks for creating this issue! We currently back up data using your software account so that it is accessible across multiple devices and editors. However, I think this is a great idea and can see how it could be useful. We’re going to look into adding this as a feature in V2.

shreyshah33 avatar Jul 30 '20 13:07 shreyshah33