razor icon indicating copy to clipboard operation
razor copied to clipboard

Curly brace complrtion doesn't work in string interpolation is razor

Open DoctorKrolic opened this issue 3 years ago • 1 comments

Version used: VS 2022 v17.3 Preview 2

To reproduce:

  1. Create Blazor server app
  2. Go to any component
  3. In any method of this component write var str = $"";
  4. Put your cursor between quotes
  5. Type {

Expected behavior: } as automatically inserted

Actual behavior: Nothing is automatically inserted: devenv_J2hQPYhR0p

Additional context: For C# all works fine: devenv_HI88I3NX6h

DoctorKrolic avatar Jul 12 '22 16:07 DoctorKrolic

This is because our LanguageConfigurationJson deliberately does not encode all the C# rules. We're not sure exactly what the fix here would be, but are open to a PR.

ryanbrandenburg avatar Jul 14 '22 21:07 ryanbrandenburg