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

escape "&" when launching omnisharp on windows #909

Merged
merged 1 commit into from
Nov 11, 2016

Conversation

filipw
Copy link
Contributor

@filipw filipw commented Nov 11, 2016

This PR ensures that when passing the non-quoted arguments to OmniSharp process, & is escaped on Windows.

At the moment if I have a C# project in a folder called {root}\foo&bar, OmniSharp will fail to start on Windows as it will only see the -s argument as {root}\foo. The bug doesn't affect other platforms. It manifests itself via the -s argument but potentially other arguments could be affected too, so the fix just escapes every non-quote arg.

Fixes OmniSharp/omnisharp-roslyn#515

Copy link
Member

@DustinCampbell DustinCampbell left a comment

Choose a reason for hiding this comment

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

Awesome -- thanks!

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.

Project folder path with & in it causes OmniSharp to not startup in VS Code
3 participants