dotnet/roslyn

[C#] Nested curly brace is not auto completed in interpolated string

Open

#72.116 aperta il 15 feb 2024

Vedi su GitHub
 (1 commento) (0 reazioni) (0 assegnatari)C# (4257 fork)batch import
Area-IDEhelp wanted

Metriche repository

Star
 (20.414 star)
Metriche merge PR
 (Merge medio 6g 17h) (256 PR mergiate in 30 g)

Descrizione

Ported from: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1956301

Open C# console app Type the following characters

var x = $"{{

Expected (| indicating the caret): string x = $"{{|}}" Actual: string x = $"{{|}"

--

Note: When fixing this, fix https://github.com/dotnet/roslyn/issues/61541 as well (the raw string literal case).

Guida contributor