Version Used:
Version 17.1.0 Preview 3.0 [32005.40.main]
Steps to Reproduce:
public class C
{
static void Main()
{
F(() =>
{
Console.WriteLine(1); // breakpoint
Console.WriteLine(1);
Console.WriteLine(1);
Console.WriteLine(1);
Console.WriteLine(1);
Console.WriteLine(1);
Console.WriteLine(1);
});
}
static void F(Action a)
{
a();
}
}
- Set breakpoint as indicated, F5
- Add a few more
Console.WriteLine(1); lines.
- Continue
Expected Behavior:
The inner active span covers the entire call F(() => { ... });.
Actual Behavior:

Similar issue happens when whitespace is changed in the active statements (e.g. it's indented):

Version Used:
Version 17.1.0 Preview 3.0 [32005.40.main]
Steps to Reproduce:
Console.WriteLine(1);lines.Expected Behavior:
The inner active span covers the entire call
F(() => { ... });.Actual Behavior:
Similar issue happens when whitespace is changed in the active statements (e.g. it's indented):
