Just a small issue I noticed when creating a new connection to a Cosmos DB with Mongo API. Whenever one tries to connect using a connection string and enters a name for the connection the name will not be saved. This is also true if you edit the connection with the option "Connection String" selected.
If the option "Parameters" is used for creation or editing the connection everything works as expected.
Steps to reproduce
There are two ways to reproduce the issue:
Create connection
Click "New Connection"
Select "Mongo Account"
Select "Connection String"
Enter Connection String and a name
Click "Connect"
Edit connection
Select connection
Right click and select "Edit connection"
Select "Connection String"
Enter Connection String and a name
Click Connect
Result
In both scenarios the name is not saved/ shown. Instead the host and port are displayed:
Expected behavior
I would have expected the name to be saved and displayed:
Workaround
There is a simple workaround. One can right click on the connection and select "Edit Connection" and it will show the parameters view by default. If you set the name there again it will be saved. If one directly selects the option "Parameters" in step 3 (see Steps to reproduce) the name is saved and displayed on creation, as expected.
Description
Just a small issue I noticed when creating a new connection to a Cosmos DB with Mongo API. Whenever one tries to connect using a connection string and enters a name for the connection the name will not be saved. This is also true if you edit the connection with the option "Connection String" selected.
Steps to reproduce
There are two ways to reproduce the issue:
Create connection
Edit connection
Result
In both scenarios the name is not saved/ shown. Instead the host and port are displayed:
Expected behavior
I would have expected the name to be saved and displayed:
Workaround
There is a simple workaround. One can right click on the connection and select "Edit Connection" and it will show the parameters view by default. If you set the name there again it will be saved. If one directly selects the option "Parameters" in step 3 (see Steps to reproduce) the name is saved and displayed on creation, as expected.
Azure Data Studio Version
Extension version
v0.1.4