facebook / starlark-rust

A Rust implementation of the Starlark language
Apache License 2.0
672 stars 53 forks source link

Fix hover info & go to definition for named parameters #118

Open MaartenStaa opened 4 months ago

MaartenStaa commented 4 months ago

Builds on top of #117

Previously, hovering over or triggering "go to definition" for named parameters in function calls did nothing. This PR makes sure the required information is exposed, so both of these work as expected.

Example from starlark_syntax/testcases/parse/aspect.star (after adding function documentation—otherwise only go to definition does anything):

Screenshot 2024-03-15 at 14 42 03