mtxr / vscode-sqltools

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

Missing option to store connection info in userspace #625

Open Fmstrat opened 4 years ago

Fmstrat commented 4 years ago

Describe the bug On the previous Postgres driver there was an option to store the credentials in userspace vs the workspace. This option is no longer available, which causes some odd conflicts when connections are already stored there.

I would not be surprised if https://github.com/mtxr/vscode-sqltools/issues/567 is coming from this issue.

For instance, I can create a userspace connection with the same information as a connection that is already in global space.

To Reproduce Steps to reproduce the behavior:

  1. Create a new Postgres connection
  2. Find where you can save in user/global settings

Expected behavior A global settings checkbox.

Desktop (please complete the following information):

mcamou commented 3 years ago

This is very annoying to me. I usually have several VS Code workspaces open and I'd like the same SQLTools connections to be available in all of them. After adding a new connection, I find myself having to open the settings JSON, copying the new connection from the workspace to the user settings, and deleting the workspace connection, or just opening the JSON directly and copy/pasting an existing connection instead of adding it via the dialog.

Fmstrat commented 3 years ago

It's been a long time and this issue is still presenting itself. Any feedback?