rhaiscript / lsp

Language server for Rhai.
Apache License 2.0
43 stars 4 forks source link

TODO - Handle overloaded functions #63

Closed schungx closed 2 years ago

schungx commented 2 years ago

Right now multiple overloaded functions do not seem to be handled.

For example:

fn foo(a, b, c, d, e, f) {}
fn foo(x, y, z) {}
fn foo(n) {}

/./ The following three calls should resolve to different overloaded versions
foo(1, 2, 3, 4, 5, 6);
foo(1, 2, 3);
foo(1);

Right now, it seems the function popup and "goto definition" jumps to a random choice, instead of at least matching the number of parameters...