pherrymason / c3-lsp

Language Server for C3 Language
https://pherrymason.github.io/c3-lsp/
GNU General Public License v3.0
78 stars 10 forks source link

Function signature is unaware of slices? #63

Closed joshring closed 2 months ago

joshring commented 2 months ago

Describe the bug Slice inner type is correctly reported, but the slice itself seems to be omitted in the function signature on hover

To Reproduce Create function which uses a slice, eg

fn void main(String[] args) 
{
    return;
}

Expected behavior Expect the signature to mention the type is a slice of the type reported

Screenshots image

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

pherrymason commented 2 months ago

Good catch. Happens everywhere, not only on function signatures.

joshring commented 2 months ago

I noticed that this is fixed in many places, but the function argument is still not being spotted as a slice when hover onto main itself

image