-
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
Changes from 4 commits
4f18574
422b4d3
f0f7758
e0ac6ad
54aac61
6f4891b
eaa9840
1235acc
dd324ed
235ea3a
b1cf4c2
4edadd0
c363216
2368cd1
1c48330
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -78,7 +78,8 @@ Create a New Playground | |||||
~~~~~~~~~~~~~~~~~~~~~~~ | ||||||
|
||||||
You can create a new playground from the :guilabel:`Playgrounds` | ||||||
panel, the |vsce| *Overview* page, or the |vscode| Command Pallette. | ||||||
panel, the |vsce| *Overview* page, the |vscode| Command Pallette, or | ||||||
your project file. | ||||||
|
||||||
.. tabs:: | ||||||
|
||||||
|
@@ -121,6 +122,25 @@ panel, the |vsce| *Overview* page, or the |vscode| Command Pallette. | |||||
|
||||||
.. include:: /includes/steps/open-new-playground.rst | ||||||
|
||||||
.. tab:: Your Project File | ||||||
:tabid: project-file | ||||||
|
||||||
1. Open a project file. | ||||||
|
||||||
|
||||||
To open a file in |vscode-short|, click on the file name in the | ||||||
|
To open a file in |vscode-short|, click on the file name in the | |
To open a file in |vscode-short|, click the file name in the |
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!
Outdated
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.
Here we should be specific about "highlighting the code of the query you want to test"
Outdated
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.
(nit -- right-click)
Always hyphenate. There are a couple instances. I'll just mark this one.
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!
Outdated
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.
Let's specify that this opens a new MongoDB playground file with your query exported to MongoDB Shell syntax. You can then hit the run button in the top left corner to test this query with the cluster you are currently connected to in your MongoDB extension. You can iterate on your query in the playgrounds until you are happy with your query. Once the query looks good to you, you can export it back to your application code by using the Export to Language feature (link to Export to Language page).
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.
I will add the note about exporting to language with the Export to Language PR (since this one will be merged first)
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.
@ltran-mdb2 I think this might best for this to live in it's own nav as it is a complimentary feature to "Export to Language". We could call it "Test Application Query" in the nav and make the title "Export and Test Application Query in Playgrounds".
Lastly, on both of them (i.e. Export to Language) - could we call out that these features are currently only available for users who have Github Copilot & MongoDB's Copilot extension enabled?