This will allow you to configure and run the mongo shell inside of Visual Studio Code on Windows. It will also allow you to send code you have hilighted directly to the shell.
This adds a context menu for .js files that will allow you to run the selected text in the mongo shell. Running the mongo shell will also give you a fully interactive mongo shell terminal in the vs code window.
This extension requires that you have the mongo shell installed somehwere, and have your workspace configured to point at the executable. Also, this means that you need to have a running mongod instance to point the client at. Otherwise, the client will terminate, and the shell will close.
This extension contributes the following settings:
If people are comfortable with adding login information that would be logged to a temp file in user space, I can do that. Drop a comment on my github.
Only works on Windows. Includes workaround vscode bug 8429. https://github.com/Microsoft/vscode/issues/8429
Use Issues page to communicate any requests and/or issues. https://github.com/bagonaut/mongogo/issues
Happy path code complete.
Initial release of mongogo
Fixed Typos, added some command line args.
Fixed the issue with the console not handling closing properly. It still gets in a messed up state if mongo.exe doesn't connect to a mongod instance.