Steps to Reproduce:
Given that AI is involved, I don't think there is a 100% reliable way to reproduce the bug, But I can somewhat consistently see it using the following snippet:
Invoke completions at $$. You will see a bug when there is a starred item at the top of the list.
Expected Behavior:
Starred item is properly escaped with @.
Actual Behavior:
params is not escaped, so there is a compiler error if I accept the suggestion:
However, the original completion item, which was picked by the IntelliCode is actually escaped:
🤔It might not related to Roslyn. E.g. Roslyn is only providing the completion structure code, the real source is from Copilot or Intellicode.
Assigned to Gen for more investigation.
Version Used: Latest
main
Steps to Reproduce: Given that AI is involved, I don't think there is a 100% reliable way to reproduce the bug, But I can somewhat consistently see it using the following snippet:
Invoke completions at
$$
. You will see a bug when there is a starred item at the top of the list.Expected Behavior: Starred item is properly escaped with
@
.Actual Behavior:
However, the original completion item, which was picked by the IntelliCode is actually escaped:
![devenv_QFyzc6VTkD](https://github.com/dotnet/roslyn/assets/70431552/8395a356-d5f3-41be-9425-522f63f4a235)
params
is not escaped, so there is a compiler error if I accept the suggestion: