Skip to content

Commit 6f4891b

Browse files
committed
DOCSP-44687 moving feature to new page
1 parent 54aac61 commit 6f4891b

File tree

3 files changed

+55
-20
lines changed

3 files changed

+55
-20
lines changed

source/copilot-export-test.txt

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
.. _vsce-test-queries-copilot:
2+
3+
=======================
4+
Export and Test Queries
5+
=======================
6+
7+
.. default-domain:: mongodb
8+
9+
.. contents:: On this page
10+
:local:
11+
:backlinks: none
12+
:depth: 1
13+
:class: singlecol
14+
15+
You can use the :ref:`MongoDB Extension for Github Copilot
16+
<vsce-copilot>` to export and test your application queries in
17+
playgrounds.
18+
19+
.. note::
20+
21+
:guilabel:`Export to Playground` is only available if you enable
22+
|copilot|.
23+
24+
25+
Use the following steps to test your application code in a playground:
26+
27+
.. procedure::
28+
:style: normal
29+
30+
.. step:: Open the project file that contains the MongoDB query that you
31+
want to export
32+
33+
.. step:: Highlight the query that you want to test.
34+
35+
.. step:: Right-click to select :guilabel:`Export Code to Playground`.
36+
37+
Right-click your selected code to open the options menu.
38+
Click :guilabel:`MongoDB Copilot Extension` >
39+
:guilabel:`Export Code to Playground`.
40+
41+
When you click :guilabel:`Export Code to Playground`, |vscode-short|
42+
opens a new playground with your selected code in MongoDB shell
43+
syntax.
44+
45+
.. seealso::
46+
47+
- :ref:`vsce-playgrounds`
48+
- :ref:`vsce-copilot`
49+

source/index.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ Get Started
5656
Connect </connect>
5757
Manage Data </databases-collections>
5858
Explore with Playgrounds </playgrounds>
59+
Test Queries </copilot-export-test>
5960
MongoDB Extension for Github Copilot </copilot>
6061
Create an Atlas Cluster with Terraform </create-cluster-terraform>
6162
Reference </reference>

source/playgrounds.txt

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,7 @@ Create a New Playground
7878
~~~~~~~~~~~~~~~~~~~~~~~
7979

8080
You can create a new playground from the :guilabel:`Playgrounds`
81-
panel, the |vsce| *Overview* page, the |vscode| Command Pallette, or
82-
your project file.
81+
panel, the |vsce| *Overview* page, or the |vscode| Command Pallette.
8382

8483
.. tabs::
8584

@@ -122,24 +121,10 @@ your project file.
122121

123122
.. include:: /includes/steps/open-new-playground.rst
124123

125-
.. tab:: Your Project File
126-
:tabid: project-file
127-
128-
1. Open a project file.
129-
130-
To open a file in |vscode-short|, click the file name in the
131-
file explorer.
132-
133-
#. Highlight the code that you want to open in a playground.
134-
135-
#. Right-click to select :guilabel:`Export Code to Playground`.
136-
137-
Right-click your selected code to open the options menu.
138-
Click :guilabel:`MongoDB Copilot Participant` >
139-
:guilabel:`Export Code to Playground`.
140-
141-
When you click :guilabel:`Export Code to Playground`, |vscode-short|
142-
opens a new playground with your selected code.
124+
You can also open a new playground to test and export queries with the
125+
:ref:`MongoDB Extension for Github Copilot <vsce-copilot>`. For more
126+
information, see `Export and Test Queries with Copilot
127+
<vsce-test-queries-copilot>`.
143128

144129
Open a Saved Playground
145130
~~~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)