vscode-sqltools icon indicating copy to clipboard operation
vscode-sqltools copied to clipboard

Using VS Code Variables In Settings

Open s0kil opened this issue 5 years ago • 1 comments

I've been trying to set up a connection such as:

  "sqltools.connections": [
    {
      "previewLimit": 50,
      "server": "localhost",
      "port": 5432,
      "driver": "PostgreSQL",
      "name": "my-app",
      "socketPath": "${workspaceFolder}/build/db/.s.PGSQL.5432",
      "connectString": "postgresql:///app?host=${workspaceFolder}/build/db",
      "password": ""
    }
  ]

However, it seems that variables are not supported. Is there any other way to achieve something similar without hard coding full path?

s0kil avatar Dec 04 '20 03:12 s0kil

See also https://github.com/mtxr/vscode-sqltools/issues/703#issuecomment-698754168

gjsjohnmurray avatar Aug 13 '22 04:08 gjsjohnmurray