Skip to content

Commit 8543ce3

Browse files
Merge pull request #57 from ianf-mongodb/DOCSP-28307
DOCSP-28307 Efficient Query Development
2 parents 7f9eeb3 + 62a07ff commit 8543ce3

12 files changed

+35
-33
lines changed

source/commands.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
:depth: 1
1313
:class: singlecol
1414

15-
.. include:: /includes/fact-vsce-preview.rst
16-
1715
This document lists the VS Code commands available for
1816
|vsce|. To open the Command Palette and execute these commands:
1917

source/connect.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ Connect to Your MongoDB Deployment
1212
:depth: 1
1313
:class: singlecol
1414

15-
.. include:: /includes/fact-vsce-preview.rst
16-
1715
This page outlines how to use |vsce| to connect to a
1816
MongoDB host. You can connect to a standalone, replica set,
1917
or sharded cluster host.

source/create-cluster-terraform.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ Create an |service| Cluster from a Template using Terraform
1212
:depth: 1
1313
:class: singlecol
1414

15-
.. include:: /includes/fact-vsce-preview.rst
16-
1715
This page outlines how to use the |service| template for Terraform files
1816
included with the MongoDB Extension for |vscode-short| to create
1917
Shared Tier |service| clusters.

source/crud-ops.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ Perform CRUD Operations
1212
:depth: 1
1313
:class: singlecol
1414

15-
.. include:: /includes/fact-vsce-preview.rst
16-
1715
Documents are individual records in a MongoDB collection and are the
1816
basic unit of data in MongoDB.
1917

source/databases-collections.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ Navigate Your Data
1212
:depth: 2
1313
:class: singlecol
1414

15-
.. include:: /includes/fact-vsce-preview.rst
16-
1715
Once you :ref:`connect to your deployment <vsce-connect>` using |vsce|,
1816
use the left navigation to:
1917

source/index.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ MongoDB for VS Code
1212
:depth: 1
1313
:class: singlecol
1414

15-
.. include:: /includes/fact-vsce-preview.rst
16-
1715
MongoDB provides an extension for |vscode| which lets you work with
1816
MongoDB and your data directly within your coding environment.
1917

source/install.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ Install MongoDB for VS Code
1212
:depth: 1
1313
:class: singlecol
1414

15-
.. include:: /includes/fact-vsce-preview.rst
16-
1715
Prerequisites
1816
-------------
1917

source/playground-databases.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ Create Databases and Collections
1111
:depth: 1
1212
:class: singlecol
1313

14-
.. include:: /includes/fact-vsce-preview.rst
15-
1614
You can create
1715
:manual:`databases and collections </core/databases-and-collections/>`
1816
using a MongoDB Playground.

source/playgrounds.txt

Lines changed: 35 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,25 @@ Explore Your Data with Playgrounds
1212
:depth: 1
1313
:class: singlecol
1414

15-
.. include:: /includes/fact-vsce-preview.rst
16-
1715
MongoDB Playgrounds are JavaScript environments where you can prototype
1816
queries, aggregations, and MongoDB commands with helpful syntax
1917
highlighting.
2018

2119
MongoDB Playgrounds provide intelligent autocomplete for:
2220

23-
- The Mongo Shell |api|,
24-
- MongoDB operators,
25-
- Database, collection, and field names.
21+
- The Mongo Shell |api|
22+
- MongoDB keywords, operators, aggregation stages, database, collection,
23+
and field names.
24+
- Any JavaScript variables or keywords.
2625

2726
You can save playgrounds in your workspace and use them to
2827
document how your application interacts with MongoDB. |vsce| interprets
29-
files with the ``.mongodb`` extension as playgrounds.
28+
files with the ``.mongodb.js`` extension as playgrounds.
29+
30+
Starting in version ``0.11.0`` the default file extension
31+
for MongoDB Playgrounds files is ``.mongodb.js``. Previous versions
32+
of MongoDB Playgrounds use the default file extension
33+
``.mongodb``. MongoDB Playgrounds support both file extensions.
3034

3135
.. include:: /includes/admonitions/note-playgrounds.rst
3236

@@ -120,11 +124,11 @@ panel, the |vsce| *Overview* page, or the |vscode| Command Pallette.
120124
Open a Saved Playground
121125
~~~~~~~~~~~~~~~~~~~~~~~
122126

123-
If you have files in your |vscode-short| workspace with the ``.mongodb``
124-
extension, |vsce| displays these files in the :guilabel:`Playgrounds`
125-
panel.
127+
If you have files in your |vscode-short| workspace with the ``.mongodb.js``
128+
or ``.mongodb`` extension, |vsce| displays these files in the
129+
:guilabel:`Playgrounds` panel.
126130

127-
Double click a ``.mongodb`` file to open that playground.
131+
Double click a file to open that playground.
128132

129133
Run a Playground
130134
----------------
@@ -177,6 +181,26 @@ of your playground.
177181
immediately above your selected section. Click this link to test and
178182
troubleshoot specific lines or sections of your playground.
179183

184+
Code Formatting and Linting Tools
185+
---------------------------------
186+
187+
MongoDB Playgrounds are JavaScript files and can work with popular
188+
|vscode-short| formatting and linting extensions like
189+
`Prettier <https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode>`_
190+
and `ESLint <https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint>`_.
191+
192+
If you use a code formatting extension, MongoDB Playgrounds
193+
suggest autocompletion and liniting hints for:
194+
195+
- System variables such as ``$$ROOT`` and ``$$NOW``
196+
- ``use`` and ``db`` commands
197+
- Collection names, in bracketed notation such as ``db["collection"].find({})``
198+
- Alternative commands for shell commands not supported in MongoDB Playgrounds
199+
such as ``show users``
200+
201+
For a full list of autocompletion and linting improvements, see the
202+
`v0.11.1 release notes <https://github.com/mongodb-js/vscode/releases/tag/v0.11.1>`_.
203+
180204
Log to Console from a Playground
181205
--------------------------------
182206

@@ -212,4 +236,4 @@ Consideration for Authentication
212236
/crud-ops
213237
/run-agg-pipelines
214238
/export-to-language
215-
/require-modules
239+
/require-modules

source/require-modules.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ Use ``require()`` to Include External Modules
1212
:depth: 1
1313
:class: singlecol
1414

15-
.. include:: /includes/fact-vsce-preview.rst
16-
1715
.. important::
1816

1917
A complete description of Node.js, modules, and the

0 commit comments

Comments
 (0)