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

LSP code action: turn (wrong) C-style type definition into a single constructor type #3479

Open
george-grec opened this issue Aug 2, 2024 · 1 comment
Labels
help wanted Contributions encouraged priority:low

Comments

@george-grec
Copy link

Now that the compiler can recognize that when the user is creating this type

pub type User {
  name: String
}

they actually need to define it like this

pub type User {
  User(
    name: String,
  )
}

it would make sense to offer a code action on hover to do that automatically.

@lpil
Copy link
Member

lpil commented Aug 13, 2024

Good idea! thank you

@lpil lpil added help wanted Contributions encouraged priority:low labels Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Contributions encouraged priority:low
Projects
Status: Unfinished
Development

No branches or pull requests

2 participants