-
Type:
Task
-
Resolution: Fixed
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Iteration Satellite, Iteration Telescope
-
Needed
-
-
Developer Tools
Copy from https://github.com/mongodb-js/vscode/issues/368
Feature Request
Ability to save connections into settings.json within the opened folder context (i.e. .vscode/settings.json) or within the devcontainer context (i.e. .devcontainer/devcontainer.json under the key "settings")
Context
Especially useful when combining VS Code remote containers and docker compose to startup the mongodb container within the workspace and have it automatically configured to be connected to the container within this setup.
As an example of how the MSSQL extension does it and then this can be added to .devcontainer/devcontainer.json
"mssql.connections": [
{ "server": "put-server-name-here", "database": "put-database-name-here", "user": "put-username-here", "password": "put-password-here" }
]
See dotnet-mssql remote container template https://github.com/microsoft/vscode-dev-containers/tree/main/containers/dotnet-mssql for how they utilise remote containers and the mssql container for a great dev environment setup. Looking at a similar scenario with any language + mongodb as the data store
Possible Implementation
settings.json
"mdb.connections": [
]