microsoft / microsoft/vscode-pgsql

Add ability to programmatically open a connection string

Open
#38 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
No language data
Stars
395
Forks
33
Avg merge
1h 46m
Merged PRs (30d)
3

Description

Describe the bug

  • Currently I open my existing Postgres client with open postgresql://postgres:password@127.0.0.1:5434/db

To Reproduce

Steps to reproduce the behavior:

  1. Run code postgresql://postgres:password@127.0.0.1:5434/db from the CLI
  2. See that a new file is created with name postgresql://postgres:password@127.0.0.1:5434/db

Expected behavior

Expect the Postgres extension to open and connect to the DB

Screenshots

If applicable, add screenshots to help explain your problem.

VS Code version

Version: 1.100.2 macOS

Extension Logs

See: https://github.com/microsoft/vscode-pgsql?tab=readme-ov-file#usage-and-feedback

Add any other context about the problem here.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the extension's handling of the code postgresql://... CLI invocation and compare it with the documented usage and feedback instructions. Trace why the connection string becomes a file name; done means the command opens the PostgreSQL extension and connects to the specified database instead.

Written by the indexing model from the issue text.

Assessment

Tech stack
postgresql, vscode
Domain
cli, databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.