MongoDB extension for Visual Studio Code
Перейти к файлу
Eric Jizba 4cb1dcaae4 Fix errors in mongo.ts
message: 'Argument of type 'NoConnectionServer' is not assignable to parameter of type 'Server | PromiseLike<Server>'.
  Type 'NoConnectionServer' is not assignable to type 'PromiseLike<Server>'.
    Property 'then' is missing in type 'NoConnectionServer'.'
at: '130,9'

message: 'Type 'Promise<{}>' is not assignable to type 'Promise<string>'.
  Type '{}' is not assignable to type 'string'.'
at: '448,3'
2017-08-02 14:02:46 -07:00
.vscode outFiles needs glob pattern 2017-06-22 16:24:24 -07:00
grammar Fix grammar to exclude , in string 2017-05-11 17:07:35 +02:00
media add icons to tree 2017-06-22 16:47:02 -07:00
resources/icons - Show mongo as an explorer view 2017-05-05 12:43:36 +02:00
src Fix errors in mongo.ts 2017-08-02 14:02:46 -07:00
test more cleanup 2017-06-01 15:29:13 -07:00
.gitignore Initial commit: Push working extension changes 2017-03-24 11:07:48 +01:00
CHANGELOG.md Prep for publish 2017-06-19 17:03:31 -07:00
LICENSE.md Prep for publish 2017-06-09 14:39:09 -07:00
README.md last prep for publish! 2017-06-30 13:48:31 -07:00
package.json correct publisher name 2017-06-30 13:52:12 -07:00
thirdpartynotices.txt Add third party notices 2017-05-09 15:08:40 +02:00
tsconfig.json Mongo language server 2017-04-20 13:42:55 +02:00

README.md

MongoDB NoSQL Support for VS Code

The MongoDB extension makes it easy to work with MongoDB NoSQL databases, collections, and documents. With this extension, you can:

  • Connect to local or hosted (e.g. Azure CosmosDB) servers
  • Create and view MongoDB databases and collections with the MongoDB Explorer
  • Author MongoDB "Scrapbooks" with rich IntelliSense (completions) for MongoDB scripts, including collections
  • Execute scripts and see results directly in VS Code
  • Update documents in place

Prerequisites

Features

Mongo Explorer

  • Add a server by clicking the + button in the title.
    • Typical connection string for a local MongoDB instance: mongodb://localhost:27017
  • Expand the connected server to see the Databases
  • Click on a collection to see the documents
  • Remove a server by right clicking on the server name and selecting the Remove Server command

Mongo "Scrapbooks"

  • Configure the user setting mongo.shell.path to your mongo shell executable path
  • Click on any DB to open the Mongo shell playground editor
  • Enter your scripts, eg: db.<collectionName>.find()
  • IntelliSense (completions) will be provided as you write your scripts
  • Select the script and press CMD+' (CTRL+' on Windows and Linux) to see the results
  • Edite your documents, right click, and choose the Update command to persist changes to the database

Contributing

There are a couple of ways you can contribute to this repo:

  • Ideas, feature requests and bugs: We are open to all ideas and we want to get rid of bugs! Use the Issues section to either report a new issue, provide your ideas or contribute to existing threads.
  • Documentation: Found a typo or strangely worded sentences? Submit a PR!
  • Code: Contribute bug fixes, features or design changes:
    • Clone the repository locally and open in VS Code.
    • Open the terminal (press CTRL+`) and run npm install.
    • To build, press F1 and type in Tasks: Run Build Task.
    • Debug: press F5 to start debugging the extension.

Before we can accept your pull request you will need to sign a Contribution License Agreement. All you need to do is to submit a pull request, then the PR will get appropriately labelled (e.g. cla-required, cla-norequired, cla-signed, cla-already-signed). If you already signed the agreement we will continue with reviewing the PR, otherwise system will tell you how you can sign the CLA. Once you sign the CLA all future PR's will be labeled as cla-signed.

Code of Conduct

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

License

MIT