Closed AzureMarker closed 3 years ago
I actually wanted to do this. The rust plugin has some code available as public API, which would also add the references you could navigate, at the expense of showing ?
/ &?
/ &mut ?
when it cannot find something.
You can surely work on this; I made the issue to track the idea (I didn't intend to claim the assignment outright).
Wow... Was looking at the wrong thing the whole time. No wonder it wasn't working :sweat_smile:
Got it to work:
Might be a little bit overkill but I added the inlay for selected symbols in alternatives too, here's how the same code as above looks now:
@Mcat12 thoughts?
Maybe also would be a good idea to put this behind an option in the settings because it looks like too much.
I think it might be better to have the symbol types only be shown when you hover over them (like documentation).
Uhh I added the options already :disappointed:
I'm not opposed to it also being an option :)
I think the way the rust plugin does something similar is through the elementDescriptionProvider
EP, offering that data on hover
When a nonterminal does not explicitly state its type, show the inferred type as a type hint.
Similar to how type hints are shown in Rust code:
Do something similar for nonterminals: