microsoft / microsoft/vscode-pgsql
Existing query tabs are not updated when connection is edited
Nobody has claimed this yet.
- Dominant language
- No language data
- Stars
- 395
- Forks
- 33
- Avg merge
- 1h 46m
- Merged PRs (30d)
- 3
Description
Describe the bug
When the connection is edited (specifically, to change the username/password), any existing query tabs are not updated. They will continue to use previous connection properties, not the new ones.
To Reproduce
Steps to reproduce the behavior:
- Connect to a database as one user (with limited permissions). Open a query tab and run a query that will fail due to incorrect permissions.
- Edit the connection, changing to another user (with limited permissions).
- The existing query window still fails with incorrect permissions.
Expected behavior
The existing query tab runs with the correct permissions.
OR
There is some UI indicating that the existing query tab is using outdated connection properties.
Screenshots
VS Code version
Version: 1.104.2 (user setup)
Commit: e3a5acfb517a443235981655413d566533107e92
Date: 2025-09-24T11:21:37.073Z (1 wk ago)
Electron: 37.3.1
ElectronBuildId: 12404162
Chromium: 138.0.7204.235
Node.js: 22.18.0
V8: 13.8.258.31-electron.0
OS: Windows_NT x64 10.0.26100
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source files or tests are named. Reproduce the connection-edit flow in the PostgreSQL extension, then trace how existing query tabs obtain connection properties; done means they use the edited credentials or clearly indicate they are stale, with regression coverage for the reported sequence.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- postgresql, vscode
- Domain
- database
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100