madskristensen / RainbowBraces

A Visual Studio extension
Apache License 2.0
132 stars 7 forks source link

Breakpoint on brace interferes with nesting levels #31

Closed bmadtiger closed 1 year ago

bmadtiger commented 1 year ago

When a breakpoint is placed on an opening or closing curly brace (ie beginning or end of a block of code in C#), then that brace is ignored in calculating the nesting level.

Here the default orange for the first level of braces (on the class) is now being used for the methods and the end of the class is left uncolored. devenv_2022-09-28_20-44-11

Moving the breakpoint down one line resolves the issue devenv_2022-09-28_20-46-04

SkyGen commented 1 year ago

FYI: I've seen this behavior on the latest (1.0.57) version. To repro, put a breakpoint on a starting or ending brace, then use the mouse wheel to scroll lines. Removing the breakpoint reveals the uncolored brace. Scrolling again recolors as expected.