-
Notifications
You must be signed in to change notification settings - Fork 35
DOCSP-44687 export to playground with Copilot #103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 10 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
4f18574
DOCSP-44687 export to playground with Copilot
ltran-mdb2 422b4d3
DOCSP-44687 export to playground with Copilot
ltran-mdb2 f0f7758
DOCSP-44687 fixing spacing
ltran-mdb2 e0ac6ad
DOCSP-44687 fixing spacing
ltran-mdb2 54aac61
DOCSP-44687 copy edits
ltran-mdb2 6f4891b
DOCSP-44687 moving feature to new page
ltran-mdb2 eaa9840
DOCSP-44687 moving feature to new page
ltran-mdb2 1235acc
DOCSP-44687 moving feature to new page
ltran-mdb2 dd324ed
DOCSP-44687 moving feature to new page
ltran-mdb2 235ea3a
DOCSP-44687 moving feature to new page
ltran-mdb2 b1cf4c2
DOCSP-44687 tech edits
ltran-mdb2 4edadd0
DOCSP-44687 tech edits
ltran-mdb2 c363216
DOCSP-44687 tech edits
ltran-mdb2 2368cd1
DOCSP-44687 tech edits
ltran-mdb2 1c48330
DOCSP-44687 tech edits
ltran-mdb2 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
.. _vsce-test-queries-copilot: | ||
|
||
======================= | ||
Export and Test Queries | ||
======================= | ||
|
||
.. default-domain:: mongodb | ||
|
||
.. contents:: On this page | ||
:local: | ||
:backlinks: none | ||
:depth: 1 | ||
:class: singlecol | ||
|
||
You can use the :ref:`MongoDB Extension for Github Copilot | ||
<vsce-copilot>` to export and test your application queries in | ||
playgrounds. | ||
|
||
.. note:: | ||
|
||
The :guilabel:`Export Code to Playground` feature is only available | ||
if you enable |copilot|. | ||
|
||
Export to Playground | ||
-------------------- | ||
|
||
Use the following steps to test your application code in a playground: | ||
|
||
.. procedure:: | ||
:style: normal | ||
|
||
.. step:: Open the project file that contains the MongoDB query that you want to export. | ||
|
||
.. step:: Highlight the query that you want to test. | ||
|
||
.. step:: Right-click to select :guilabel:`Export Code to Playground`. | ||
|
||
Right-click your selected code to open the options menu. | ||
Click :guilabel:`MongoDB Copilot Extension` > | ||
:guilabel:`Export Code to Playground`. | ||
|
||
When you click :guilabel:`Export Code to Playground`, |vscode-short| | ||
opens a new playground with your selected code in MongoDB shell | ||
syntax. | ||
|
||
Once you export your code to a playground, you can click | ||
:icon-fa5:`play` on the top right of your window to run your query. | ||
|
||
.. seealso:: | ||
|
||
- :ref:`vsce-playgrounds` | ||
- :ref:`vsce-copilot` | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -121,6 +121,13 @@ panel, the |vsce| *Overview* page, or the |vscode| Command Pallette. | |
|
||
.. include:: /includes/steps/open-new-playground.rst | ||
|
||
.. note:: | ||
|
||
You can also open a new playground to test and export queries with the | ||
|
||
:ref:`MongoDB Extension for Github Copilot <vsce-copilot>`. For more | ||
information, see :ref:`Export and Test Queries with Copilot | ||
<vsce-test-queries-copilot>`. | ||
|
||
Open a Saved Playground | ||
~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the miscommunication here @ltran-mdb2 – I meant to put this under "Explore with Playgrounds" tab, same level as "Export to Language".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we also include the word "Driver" in here? We can call it "Test Driver Queries"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!