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

[Scala 3] Incorrect named arguments completions #7188

Open
tgodzik opened this issue Feb 3, 2025 · 0 comments
Open

[Scala 3] Incorrect named arguments completions #7188

tgodzik opened this issue Feb 3, 2025 · 0 comments
Labels
bug Something that is making a piece of functionality unusable presentation-compiler Something relating to the presentation compiler Scala 3 Generic ticket relating to Scala 3 spree

Comments

@tgodzik
Copy link
Contributor

tgodzik commented Feb 3, 2025

Describe the bug

"""|trait Foo {
| def bar[A](fst: A, snd: Int, thd: Int = 23)
|}
|object Main {
| def foo: Foo = ???
| foo.bar(123, @@)
|}
|""".stripMargin

Expected behavior

Completions should be for both params:

"""|snd = : Int
|thd = : Int
|""".stripMargin

Operating system

None

Editor/Extension

None

Version of Metals

v1.5.2

Extra context or search terms

https://github.com/scalameta/metals/pull/7182/files

@tgodzik tgodzik added bug Something that is making a piece of functionality unusable presentation-compiler Something relating to the presentation compiler Scala 3 Generic ticket relating to Scala 3 labels Feb 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something that is making a piece of functionality unusable presentation-compiler Something relating to the presentation compiler Scala 3 Generic ticket relating to Scala 3 spree
Projects
Status: Triage
Development

No branches or pull requests

2 participants