You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Indent Guides Highlight Incorrect Level for Certain Indent Styles and Simple Code Blocks #53737
Put the cursor at the bracket on lines 4, 6, 8, and 10. Verify that the highlighted Indent Guide is NOT associated with the associated if statement, but the function statement on line 1.
Move the cursor to the bracket on line 12 or 14. Verify that the highlighted Indent Guide is Not associated with the brackets that define the block, but the encapsulating function statement on line 1.
Move the cursor to the bracket on line 13. Verify that the highlighted Indent Guide is associated with the if statement on line 12.
Discussion
As a user who prefers the Allman indentation style I expect that placing the cursor on a bracket (both opening and closing) associated with a specific block will result in highlighting the block associated with that bracket rather than the encapsulating block. As the reproduction steps show, this also fails with the K&R style and with simple code blocks.
This does work as expected with the Whitesmiths style, the GNU, and likely with any other style that indents the brackets themselves beneath the encapsulating statement.
Environment
Does this issue occur when all extensions are disabled?: Yes
changed the title [-]Indent Guides Highlight Incorrect Level for Allman [and K&R]-Style Brackets[/-][+]Indent Guides Highlight Incorrect Level for Certain Indent Styles and Simple Code Blocks[/+]on Jul 6, 2018
alexandrudima you are saying everywhere this is duplicate i visited all references and in all references you are saying the same thing but not telling the solution 👎
Activity
[-]Indent Guides Highlight Incorrect Level for Allman [and K&R]-Style Brackets[/-][+]Indent Guides Highlight Incorrect Level for Certain Indent Styles and Simple Code Blocks[/+]alexdima commentedon Jul 26, 2018
Duplicate of #49342
hassanbinsafdar commentedon Aug 6, 2018
alexandrudima you are saying everywhere this is duplicate i visited all references and in all references you are saying the same thing but not telling the solution 👎