Skip to content

Code folding doesn't work for single-line if/else statements #7809

@sean-mcmanus

Description

@sean-mcmanus

@vacing The fix is in 1.5.0 (https://github.com/microsoft/vscode-cpptools/releases/tag/1.5.0).

thank you, it workes fine for the previous case, now I have a new bad case : (

    if (true) {
        if (true) {
            ;
        } else {
            ;
        }
        ;
    } else if(true)  // else or else if(), the most important is no bracket here
        ;

Originally posted by @vacing in #5521 (comment)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions