-
Notifications
You must be signed in to change notification settings - Fork 420
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
Correct regex completion #1950
Correct regex completion #1950
Conversation
Depending on whether the context is a verbatim string or not, the regex provider will escape the text, so we need to realize it ahead of time. Fixes OmniSharp#1949.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ai, good catch
@filipw do you have any idea what could cause projects not be found on the Mac and Linux test legs? It seems that both the Mac and Linux MSBuild tests are seeing something like:
I'm especially confused because I'm doing nothing different in these tests than I'm doing for the other tests in the file, but these both are failing to locate projects. |
yes I saw this before here 56afd27 at the time I just thought it was flaky and ended up removing it. Now it looks to me that CSX project system with project per CSX file somehow fails with the embedded language provider with Regex on *nix. I think it's OK to run these tests for *.cs only for now and we can investigate separately - at the end there is no regression here, it was just not being observed |
Actually, these tests fail for .cs files as well. |
hmm yes you are right. I would imagine we could repro this on a simple console project on Mono - perhaps it's a Roslyn bug? |
Agreed, and done. |
thanks a lot |
Depending on whether the context is a verbatim string or not, the regex provider will escape the text, so we need to realize it ahead of time. Fixes #1949.