Skip to content

Commit d3abc47

Browse files
committed
DOCSP-46639 mdb.presetConnection setting
1 parent 1b5d17d commit d3abc47

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

source/settings.txt

+27
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,33 @@ The following table lists the available settings for
109109
collection. Does not affect playground operations.
110110
- ``10``
111111

112+
* - :guilabel:`Preset Connections`
113+
- Specifies a preset list of connections that can be shared in a workspace
114+
or global scope.
115+
116+
Edit this setting through the ``mdb.presetConnection`` property in
117+
your project's ``settings.json`` file.
118+
119+
Within the ``mdb.presetConnections`` object, you
120+
can specify:
121+
122+
- A ``name`` for the connection.
123+
124+
- A ``connectionString`` for your deployment.
125+
126+
:red:`WARNING:` Do not store sensitive credentials in this setting.
127+
Connection strings are stored in plain text, so they can be easily
128+
accessed.
129+
130+
- .. code-block:: json
131+
132+
[
133+
{
134+
"name": "Preset Connection",
135+
"connectionString": "mongodb://localhost:27017"
136+
}
137+
]
138+
112139
* - :guilabel:`Send Telemetry`
113140
- If enabled, allows the collection of anonymous diagnostic and
114141
usage telemetry data to help improve |vsce|.

0 commit comments

Comments
 (0)