mtxr/vscode-sqltools

Do you want to work on this issue?

You can request for a bounty in order to promote it!

how to edit connection json manually? #412

sstirlin posted onGitHub

The docs suggest that to add any extra pgOptions (e.g. setting ssl to true) we should manually edit the connection json

https://vscode-sqltools.mteixeira.dev/connections/aws-redshift

How do we do this? There doesn't appear to be any way to modify the json from the Connection Assistant.

Thanks!


Useful info: https://code.visualstudio.com/docs/getstarted/settings#_settings-file-locations

Requirements:

  1. Have a button in the assistant to go to the settings file
  2. Add an entry in the explorer context menu to go to settings file
  3. when creating connections, show option to go to setting only after connection is created, otherwise we don't know where the connections is
posted by mtxr about 5 years ago

Vscode doesn't provide api to progamatically find current settings file. I could find a solution that works in 2 fo 3 possible setups.

Currently we can have tree places where it can be stored, global settings (easy to find), workspace folder settings(usually .vscode/settings.json) and workspace files, and for workspace files, it can be created anywhere, we don't have a standard for that, I can create a workspace files in my home directory that uses directories from any path.

I'll add this to the docs here and I'll open an issue in vscode repo.

posted by mtxr about 5 years ago

Found a temporary solution. We still can't got directly to the file, but we take user to vscode settings screen, from there we can go to the correct file..

posted by mtxr about 5 years ago

Fund this Issue

$0.00
Funded
Only logged in users can fund an issue

Pull requests