razor
razor copied to clipboard
Curly brace complrtion doesn't work in string interpolation is razor
Version used: VS 2022 v17.3 Preview 2
To reproduce:
- Create Blazor server app
- Go to any component
- In any method of this component write
var str = $""; - Put your cursor between quotes
- Type
{
Expected behavior:
} as automatically inserted
Actual behavior:
Nothing is automatically inserted:

Additional context:
For C# all works fine:

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.