Skip to content

Wrap Properties is unavailable in recoverable syntax failure conditions #38986

@333fred

Description

@333fred
    public class Base
    {
        public Base(int i1, int i2)
        {
        }
    }

    public class Derived : Base
    {
        public Derived(int i1, int i2, int i3) : base (,)
        {

        }
    }

If I invoke ctrl+. on the parameter list of Derived here, I do not get offered a wrap parameter quick fix. Same for an incomplete method where the brackets are missing, but the signature is otherwise there. I understand that we're likely just bailing out in the presence of syntax errors, but it would be nice if we could be a bit smarter here, as offering the wrapping, at least in this scenario, is totally possible and, I think, has a well-defined output.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-IDEConcept-Continuous ImprovementIDE-CodeStyleBuilt-in analyzers, fixes, and refactoringshelp wantedThe issue is "up for grabs" - add a comment if you are interested in working on it

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions