microsoft / pylance-release

Documentation and issues for Pylance
Creative Commons Attribution 4.0 International
1.67k stars 770 forks source link

Docstring references could have links that goto def on the reference #6042

Open rchiodo opened 1 week ago

rchiodo commented 1 week ago

Given a docstring like so:

image

You can see that there a func references. These references are generally to modules inside the current one, meaning we could theoretically find them.

It would be super cool to turn these into clickable links that jump to the other reference. Like sphinx does:

image

We could also do this automatically in spots where we know something is a type. Like parameter types.