subasraj / flashpost-support

Flashpost is a lightweight Rest API Client Extension for Visual Studio Code.
MIT License
10 stars 0 forks source link

[suggestion] relative to project root paths in `.db` files #30

Closed BananaAcid closed 6 months ago

BananaAcid commented 6 months ago

Thanks for all the great updates!

I am developing on multiple devices (Remote VM, Laptop, Desktop, vscode.com) and I noticed, the paths in the .db files change around. So started to manually change them to a relative-to-project-root dir, to prevent git commits for these each time I try something out.

example: flashpost.db {"filename":"./Flashpost-tests/flashpost.db" ...

Could be helpful (to me) ;)

subasraj commented 6 months ago

Changing the path is not possible since we use lokijs DB. The work around will be a pre-commit script like below and set a environment varaible for "workspacepath"

precommit.txt