Skip to content
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

VSCODE-200: Open mongodb shell with git bash #201

Merged
merged 2 commits into from
Nov 10, 2020

Conversation

Anemy
Copy link
Member

@Anemy Anemy commented Nov 10, 2020

VSCODE-200

Fixes #186

This PR adds support for launching MongoDB shell when the user has their default shell set to git bash.
It also fixes an issue with loading files with spaces in them.

The way we do the environment passing for these different shell environments is a bit manual and hacky. I've looked around for a bit for a node package which provides support for building the shell command for various shells/environments but haven't found one. Do ya'll know of one? I think this works for now but it would be nice to have a quick catch all to prevent any lack of support for other environments.

Manually tested with SSL certs on windows (with a cert file with a space in it which is how I came across that other bug xD).

Copy link

@rose-m rose-m left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code change LGTM, nice 👍

Didn't test as I've not setup the Windows environment yet...

@Anemy Anemy merged commit 608a1f1 into master Nov 10, 2020
@Anemy Anemy deleted the VSCODE-200/open-mongodb-shell-with-git-bash branch November 10, 2020 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Open mongo shell fails for git bash shell
2 participants