Allow connection profiles to be declared in workspace settings.json for team sharing
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 55/100
Hướng nghiên cứu
Bắt đầu bằng cách theo dõi quá trình kích hoạt extension và cách các kết nối được tải vào cây kết nối, sau đó kiểm tra các path hiện có cho secret-storage và user-settings. Xác định cách các workspace descriptor được hợp nhất với các kết nối cá nhân, cách source badge được hiển thị và cách một password bị thiếu đi đến prompt thông thường. Hoàn thành khi các workspace profile không chứa secret xuất hiện sau khi clone mà không commit credentials, đồng thời các kết nối cá nhân hiện có vẫn hoạt động.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Problem
Connection profiles in the PostgreSQL extension are stored in VS Code's global secret storage and user settings — neither of which is committed to source control. In a team environment, every developer must manually re-enter connection details (host, port, database, username) for shared databases (dev/staging). There is no way to ship a pre-populated, non-secret connection profile as part of a repository.
Use Case
A team wants to commit a .vscode/settings.json that pre-declares non-secret connection attributes:
{
"pgsql.connections": [
{
"name": "Dev DB (shared)",
"host": "dev-db.internal.example.com",
"port": 5432,
"database": "myapp_dev",
"user": "devuser",
"passwordSource": "prompt" // or "pgpass" | "secretStorage"
}
]
}
When a developer clones the repo and opens it, the connection appears pre-populated in the sidebar — they only need to supply the password.
Why This Is Safe
Passwords are never committed (the passwordSource field controls where the credential comes from). Only non-secret metadata (host, port, db name, user) is in the settings file. This mirrors how SQL Server extension (mssql) handles workspace-level connection profiles.
Proposed Change
- Add
pgsql.connectionsas a workspace-scope configuration key (array of connection descriptors, no password field). - On activation, merge connections from workspace settings into the connections tree (alongside secret-storage ones), displaying a source badge ("workspace" vs "personal").
- Connecting a workspace connection that has no password triggers the normal password prompt and optionally stores it in secret storage for the session.
Environment
- VS Code: 1.89+, team sharing
.vscode/settings.jsonvia git - Extension: ms-ossdata.vscode-pgsql latest
- Ngôn ngữ chính
- Không có dữ liệu ngôn ngữ
- Star
- 395
- Fork
- 33
- Merge trung bình
- 1 giờ 46 phút
- Pull request đã merge (30 ngày)
- 3
Chuẩn bị môi trường
Chúng tôi chưa kiểm tra các tệp thiết lập môi trường của dự án này. Hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của microsoft/vscode-pgsql
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
microsoft/vscode-pgsql#190 · 3 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
microsoft/vscode-pgsql#307 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
microsoft/vscode-pgsql#306 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
microsoft/vscode-pgsql#305 · 2 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
microsoft/vscode-pgsql#302 ·
Tất cả issue của microsoft/vscode-pgsql
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
GoogleChromeLabs/project-sesame#216 ·
Maintainer thường phản hồi trong vòng 12 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
-
Add: Prima Sport 5 LogoĐang mởcheck:passed logos:add
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày