You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The various VS Code variables are not respected in SQL Tools settings. For instance if I want to set the folder where my SQL sessions should be stored I can't use ${workspaceFolder}/sql-sessions. If I do I get "Error cannot create directory /${workspaceFolder}/sql-sessions. Read only". This is because the code seems to just be taking what is in the configuration and whacking a / at the front of it (at least on Mac.). Having to hard code a folder in the workspace space creates a few challenges. For example, if using multiple machines to work on the same repository, synced via Git, the workspace folder might not be the same on both platforms. So syncing VS Code settings with hard coded paths will break if, for example, one machine is a Mac and one is a Windows box.
It would be great if this setting could reference VS Code variables, and if that is support then ${env:ENV_VAR} would be even better since I'm sure many people have a ton of environment variables set in their shells. Syncing settings would work far better because the folder will be correctly resolved on whatever machine a workspace is opened without any changes. One could simply add a setting in the User space to say that SQL Sessions should go in ${workspaceFolder}/sql-sessions and that would be that. :)
I've tried various ways to get around this but the fact that a / is pre-pended to whatever I enter and that the variables are just left in place means I can't find a way around the issue.
The text was updated successfully, but these errors were encountered:
The various VS Code variables are not respected in SQL Tools settings. For instance if I want to set the folder where my SQL sessions should be stored I can't use
${workspaceFolder}/sql-sessions
. If I do I get"Error cannot create directory /${workspaceFolder}/sql-sessions. Read only"
. This is because the code seems to just be taking what is in the configuration and whacking a / at the front of it (at least on Mac.). Having to hard code a folder in the workspace space creates a few challenges. For example, if using multiple machines to work on the same repository, synced via Git, the workspace folder might not be the same on both platforms. So syncing VS Code settings with hard coded paths will break if, for example, one machine is a Mac and one is a Windows box.It would be great if this setting could reference VS Code variables, and if that is support then
${env:ENV_VAR}
would be even better since I'm sure many people have a ton of environment variables set in their shells. Syncing settings would work far better because the folder will be correctly resolved on whatever machine a workspace is opened without any changes. One could simply add a setting in the User space to say that SQL Sessions should go in${workspaceFolder}/sql-sessions
and that would be that. :)I've tried various ways to get around this but the fact that a / is pre-pended to whatever I enter and that the variables are just left in place means I can't find a way around the issue.
The text was updated successfully, but these errors were encountered: