@@ -25,7 +25,8 @@ MongoDB Playgrounds provide intelligent autocomplete for:
25
25
- Database, collection, and field names.
26
26
27
27
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.
29
30
30
31
.. include:: /includes/admonitions/note-playgrounds.rst
31
32
@@ -42,18 +43,49 @@ To run a playground, you must connect to a MongoDB deployment using
42
43
Open a Playground
43
44
-----------------
44
45
45
- To open a playground and begin interacting with your data:
46
+ Create a New Playground
47
+ ~~~~~~~~~~~~~~~~~~~~~~~
46
48
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.
48
51
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.
51
82
52
83
Run a Playground
53
84
----------------
54
85
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>`.
57
89
58
90
.. _playground-connect-to-deployment:
59
91
0 commit comments