moonbitlang / core

MoonBit's Core library
https://moonbitlang.com/
Apache License 2.0
483 stars 54 forks source link

Language server needs to show argument names in addition to their types #479

Closed gmlewis closed 3 weeks ago

gmlewis commented 1 month ago

When attempting to get more information about a particular method, the help text pops up in VSCode but only shows the types of the arguments and doesn't show the names, but then the text below refers to the argument names. Both are needed.

For example:

missing-info-2024-05-31_15-27-24

In this case, the signature of blit is displayed as: (Int, Bytes, Int, Int) -> Unit but it should instead be shown as:

blit(
  self : Bytes,
  dst_offset : Int,
  src : Bytes,
  src_offset : Int,
  length : Int
) -> Unit

so that the developer can figure out how to call the method.

bzy-debug commented 3 weeks ago

It should be able to print parameter names now.

Close as completed. Feel free to reopen it if you run into any problems.