Skip to content

Code folding incorrectly matches to an inactive } #5429

@sean-mcmanus

Description

@sean-mcmanus

Originally reported at #407.

Use code

int main()
{
    if (false)
    {
    #if false
    }
    #else
    }
    #endif
    return 0;
}

Bug: Code folding incorrectly matches to the inactive } instead of the active one that comes afterwards. The bug doesn't repro with VS.

Metadata

Metadata

Assignees

Labels

Feature: Code FoldingLanguage ServiceWorks in VSSo we'd need to fix it for VS Code to reach parity.bugfixedCheck the Milestone for the release in which the fix is or will be available.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions