Skip to content

Commit caaac33

Browse files
(DOCSP-12585): Playground updates
1 parent da12c2c commit caaac33

File tree

2 files changed

+39
-7
lines changed

2 files changed

+39
-7
lines changed
47 KB
Loading

source/playgrounds.txt

Lines changed: 39 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ MongoDB Playgrounds provide intelligent autocomplete for:
2525
- Database, collection, and field names.
2626

2727
You can save playgrounds in your workspace and use them to
28-
document how your application interacts with MongoDB.
28+
document how your application interacts with MongoDB. |vsce| interprets
29+
files with the ``.mongodb`` extension as playgrounds.
2930

3031
.. include:: /includes/admonitions/note-playgrounds.rst
3132

@@ -42,18 +43,49 @@ To run a playground, you must connect to a MongoDB deployment using
4243
Open a Playground
4344
-----------------
4445

45-
To open a playground and begin interacting with your data:
46+
Create a New Playground
47+
~~~~~~~~~~~~~~~~~~~~~~~
4648

47-
.. include:: /includes/steps/open-new-playground.rst
49+
You can create a new playground from either the :guilabel:`Playgrounds`
50+
panel, or the |vscode| Command Pallette.
4851

49-
Your playground runs against the deployment specified in your
50-
:ref:`active connection <vsce-connect>`.
52+
.. tabs::
53+
54+
.. tab:: Playgrounds Panel
55+
:tabid: playground-panel
56+
57+
If you have no saved playgrounds in your |vscode-short| workspace,
58+
in the :guilabel:`Playgrounds` panel of |vsce|, click
59+
:guilabel:`Create New Playground`.
60+
61+
.. figure:: /images/vsce-create-new-playground.png
62+
:figwidth: 400px
63+
:alt: Image of Create New Playground button
64+
65+
If you have saved playgrounds in your |vscode| workspace, click
66+
the :guilabel:`...` menu icon of the :guilabel:`Playgrounds` panel
67+
and select :guilabel:`Create MongoDB Playground`.
68+
69+
.. tab:: VSCode Command Palette
70+
:tabid: command-palette
71+
72+
.. include:: /includes/steps/open-new-playground.rst
73+
74+
Open a Saved Playground
75+
~~~~~~~~~~~~~~~~~~~~~~~
76+
77+
If you have files in your |vscode-short| workspace with the ``.mongodb``
78+
extension, |vsce| displays these files in the :guilabel:`Playgrounds`
79+
panel.
80+
81+
Double click a ``.mongodb`` file to open that playground.
5182

5283
Run a Playground
5384
----------------
5485

55-
To run a playground, click the :guilabel:`Play Button` in VS Code's
56-
top navigation bar.
86+
To run a playground, click the :guilabel:`Play Button` in VS Code's top
87+
navigation bar. Your playground runs against the deployment specified in
88+
your :ref:`active connection <vsce-connect>`.
5789

5890
.. _playground-connect-to-deployment:
5991

0 commit comments

Comments
 (0)