scalameta / metals

Scala language server with rich IDE features 🚀

Home Page:https://scalameta.org/metals/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

convert to named arguments malfunction

arturopala opened this issue · comments

When applying a command to convert to named arguments

function(
      "foo",
      ("bar" -> baz),
      Map("events" -> removeFromList(0))
    )

I get

function(
      tableName = "foo",
      (key = "bar" -> baz),
      update = Map("events" -> removeFromList(0))
    )

Expected behaviour:

function(
      tableName = "foo",
      kay = ("bar" -> baz),
      update = Map("events" -> removeFromList(0))
    )

Operating system:
Mac OS X

Java version:
21.0.1

Editor/extension:
Visual Studio Code v1.89.1

Metals version:
1.3.1+21-b4e9cf79-SNAPSHOT

Extra context or search terms:

Workspace information:

  • Scala versions: 3.4.2
  • Build tools: 0. scala-cli
  • Build servers:
    0. scala-cli v1.3.1
  • All build tools in workspace:

Thanks for reporting! I am pretty sure we missed this case