mtxr / vscode-sqltools

Database management for VSCode
https://vscode-sqltools.mteixeira.dev?utm_source=github&utm_medium=homepage-link
MIT License
1.43k stars 290 forks source link

allow sessionFilesFolder to be relative to the workspace folder if th… #1336

Open Namyts opened 1 month ago

Namyts commented 1 month ago

…e path provided in the config is not absolute

Describe here what is this PR about and what we are achieving merging this.

Addresses #1254, and potentially helps with #1010

This PR aims allows the session file folder to be relative to the workspace if the path in the config is a relative path. Currently setting the session file folder to "./something" will cause it to create folder "/something" instead.


Thank you for your contribution! Before submitting this PR, please make sure:

Namyts commented 1 week ago

I really don't mind if it uses activeTextEditor instead. This is just a nice way to be able to sneak the generated file into the .vscode folder which is git ignored in my projects. Do you want me to change it?