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

adding arguments with correct types in creating new symbol #283

Open
vzmerr opened this issue Jul 15, 2022 · 1 comment
Open

adding arguments with correct types in creating new symbol #283

vzmerr opened this issue Jul 15, 2022 · 1 comment

Comments

@vzmerr
Copy link

vzmerr commented Jul 15, 2022

Is your feature request related to a problem? Please describe.

Currently, invoking the code action for creating a new symbol does not add arguments to the generated symbol.
CreateNewSymbol

Describe the solution you'd like

I think it's better if the arguments be added with their inferred types to the symbol as in
case class School(arg1: String, arg2: Int)

Describe alternatives you've considered

not adding the arguments.

Additional contex

IntelliJ provides this feature, which is particularly useful with longer lists of arguments and complex code.

So it would be cool if Metals also supports that.

Search terms

Create New Symbol Code Action

@tgodzik
Copy link
Contributor

tgodzik commented Jul 15, 2022

Thanks for raising this! It's kind of related to scalameta/metals@e7c21ae

Would be good to cover both, since it will msot likely reuse the same code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants