Skip to content

"pgsql.serverGroups" entries are unusable #133

@nanderLP

Description

@nanderLP

Describe the bug

I can't use server groups that I define using the project settings.json in connections defined in the same file.

To Reproduce

.vscode/settings.json

{
  "pgsql.serverGroups": [
    {
      "id": "foobar",
      "name": "foobar Local Servers",
      "color": "#248aff"
    }
  ],
  "pgsql.connections": [
    {
      "id": "supabase-local",
      "groupId": "foobar",
      "profileName": "Supabase Local",
      "server": "127.0.0.1",
      "user": "postgres",
      "emptyPasswordInput": true,
      "password": "",
      "database": "postgres"
    }
  ]
}

Expected behavior

The server group and connection should show up in the side panel

VS Code version

Version: 1.104.0-insider
Commit: 82ffae12bf43ec6e469c3ebbc7140cc93cd03006
Date: 2025-08-11T19:22:05.105Z
Electron: 37.2.3
ElectronBuildId: 12035395
Chromium: 138.0.7204.100
Node.js: 22.17.0
V8: 13.8.500258-electron.0
OS: Linux x64 6.15.9-arch1-1

Extension Logs
Output Logs:

[3:26:27 PM] [ObjectExplorerService] [Error]: Unable to find server group foobar for node with ID: supabase-local
[3:26:27 PM] [ObjectExplorerService] [Error]: Unable to find server group foobar for node with ID: supabase-local
[3:26:27 PM] [ObjectExplorerService] [All]: Getting root OE nodes
[3:26:27 PM] [PgToolsService Initialization] [Verbose]: readAllConnections: 2 connections; excluded recent)

PGSQL Logs:

2025-08-12 15:30:01,285 INFO Received notification method=$/setTraceNotification
2025-08-12 15:30:01,286 WARNING Notification method $/setTraceNotification is unsupported
2025-08-12 15:30:01,286 INFO Received notification method=workspace/didChangeConfiguration
2025-08-12 15:30:01,286 ERROR Failed to deserialize notification workspace/didChangeConfiguration: 1 validation error for Configuration
pgsql.connections.0.authenticationType
  Field required [type=missing, input_value={'id': 'supabase-local', ... 'database': 'postgres'}, input_type=dict]
    For further information visit https://errors.pydantic.dev/2.10/v/missing
Traceback (most recent call last):
  File "ossdbtoolsservice/hosting/message_server.py", line 253, in _dispatch_message
  File "ossdbtoolsservice/hosting/message_server.py", line 54, in deserialize_params
  File "ossdbtoolsservice/serialization/serializable.py", line 26, in from_dict
  File "ossdbtoolsservice/serialization/serializable.py", line 89, in convert_from_dict
  File "pydantic/main.py", line 627, in model_validate
pydantic_core._pydantic_core.ValidationError: 1 validation error for Configuration
pgsql.connections.0.authenticationType
  Field required [type=missing, input_value={'id': 'supabase-local', ... 'database': 'postgres'}, input_type=dict]
    For further information visit https://errors.pydantic.dev/2.10/v/missing

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-verifyHas been releated or pre-released, awaiting verification of fix.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions