Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CodeActionProvider should support body expression constructor with new action: Initialize body expression ctor from properties #122

Closed
bard83 opened this issue Jun 4, 2023 · 1 comment
Milestone

Comments

@bard83
Copy link
Collaborator

bard83 commented Jun 4, 2023

Body expression constructor is currently not supported as already mentioned in #56. Since all the others code actions have been removed, it does make sense to provide a new action to initialize the ctor - as body expression - from the properties.

New Action:

  • Initialize body expression ctor from properties

possible body expression constructors:

public NewClass (int field1) => Field1 = field1;

public Field1 { get; set; }
public NewClass (int field1, int field2) => (Field1, Field2) = (field1, field2);

public Field1 { get; set; }

Left literals could be prefixed with this. or _.

@bard83 bard83 changed the title CodeActionProvider should support body expression constructor CodeActionProvider should support body expression constructor with new action: Initialize body expression ctor from properties Jul 5, 2023
@bard83
Copy link
Collaborator Author

bard83 commented Jul 28, 2023

closed by #125

@bard83 bard83 closed this as completed Jul 28, 2023
@bard83 bard83 added this to the 1.8.0 milestone Aug 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant