From 31ac572a62d24406ac1fecb7d106fe752a237f3c Mon Sep 17 00:00:00 2001 From: Alison Huh Date: Fri, 8 Dec 2023 15:27:03 -0500 Subject: [PATCH 1/2] DOCSP-34836 Playgrounds Default DB in Connection String --- source/playgrounds.txt | 46 +++++++++++++++++++++++++++++++----------- 1 file changed, 34 insertions(+), 12 deletions(-) diff --git a/source/playgrounds.txt b/source/playgrounds.txt index 109d7d5b..68075047 100644 --- a/source/playgrounds.txt +++ b/source/playgrounds.txt @@ -150,19 +150,41 @@ If you have a playground file open in |vscode-short| and do not have an active connection, |vsce| displays :guilabel:`Click here to add connection` at the top of your playground. -.. figure:: /images/vsce-playground-add-connection-btn.png - :figwidth: 700px - :alt: Link to add connection from playground - -1. Click this link to open the connection string dialog. - -#. Enter the - :manual:`connection string ` for the - deployment you want to run this playground against. +.. procedure:: + :style: normal -#. Press :guilabel:`Enter`. - -#. Run your playground. + .. step:: Select :guilabel:`Click here to add connection` + + After you click :guilabel:`Click here to add connection`, |vsce| opens the + connection string dialog. + + .. figure:: /images/vsce-playground-add-connection-btn.png + :figwidth: 700px + :alt: Link to add connection from playground + + .. step:: Enter your connection string + + Enter the :manual:`connection string ` for + the deployment you want to run this playground against. + + .. note:: + + If the connection string specifies a database, the playground runs + against the default connected database unless you explicitly call + ``use('')`` to use another database. + + If you are connected to a default database, the playground + autocompletes only for collection names available on the default + database. + + .. step:: Press :guilabel:`Enter`. + + After you enter your connection string, a confirmation message replaces + the :guilabel:`Click here to add connection` link. The confirmation + message includes information on the connected deployment and, if + applicable, the default database. + + .. step:: Run your playground. .. note:: From 829fa83a2c8ea04175622d88751a0bc047e2180a Mon Sep 17 00:00:00 2001 From: Alison Huh Date: Fri, 8 Dec 2023 15:59:38 -0500 Subject: [PATCH 2/2] copy --- source/playgrounds.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/playgrounds.txt b/source/playgrounds.txt index 68075047..7d53f442 100644 --- a/source/playgrounds.txt +++ b/source/playgrounds.txt @@ -177,14 +177,14 @@ an active connection, |vsce| displays autocompletes only for collection names available on the default database. - .. step:: Press :guilabel:`Enter`. + .. step:: Press :guilabel:`Enter` After you enter your connection string, a confirmation message replaces the :guilabel:`Click here to add connection` link. The confirmation message includes information on the connected deployment and, if applicable, the default database. - .. step:: Run your playground. + .. step:: Run your playground .. note::