You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, currently using c# extension version 1.23.2 and testing embedded language providers, mainly regex.
If I type that somewhere in code Regex.Match("test", ""); and try to trigger suggestions in the empty quotes of second argument, I see that the regex provider is triggered. Then, if I try to select some backslash suggestion like \s, what I get after pressing enter is just "\s". However, because the string is non verbatim, it should be escaped as "\s"`.
In addition, if I do the same but trigger completion after first typing two backslashes and then select something like \A, I get "\\\A" instead of just "\A".
I believe it does work in vs proper, so reporting it here.
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. FixesOmniSharp#1949.
Hi, currently using c# extension version 1.23.2 and testing embedded language providers, mainly regex.
If I type that somewhere in code
Regex.Match("test", "");
and try to trigger suggestions in the empty quotes of second argument, I see that the regex provider is triggered. Then, if I try to select some backslash suggestion like\s
, what I get after pressing enter is just"\s". However, because the string is non verbatim, it should be escaped as
"\s"`.In addition, if I do the same but trigger completion after first typing two backslashes and then select something like
\A
, I get"\\\A"
instead of just"\A"
.I believe it does work in vs proper, so reporting it here.
CC: @333fred
The text was updated successfully, but these errors were encountered: