microsoft / azuredatastudio-postgresql

azuredatastudio-postgresql is an extension for Azure Data Studio that enables you to work with PostgreSQL databases
Other
195 stars 37 forks source link

Cannot open multiple connections to the same server in Object Explorer #355

Open aasimkhan30 opened 1 year ago

aasimkhan30 commented 1 year ago

The reason for this issue is that the postgres extension sends a malformed session create response to ads. This malformed response prevents ads from creating a new session. A similar issue can also be found in the mysql extension. The session create response from the extension is just a Boolean value.

Expected response:

{
   sessionId: 'session id of the session'
}

Actual response from the extension:

false

To repro:

  1. Make 2 server groups
  2. Create a connection to the server in one server group
  3. Create a connection to the same server in second server group
  4. Try to connect both of them.
  5. The connection that is trying to connect last will fail
aasimkhan30 commented 1 year ago

Issue for Mysql: https://github.com/microsoft/azuredatastudio-mysql/issues/200