Right-clicking on certain modules or functions and clicking "Go To Definition", sometimes no definition is found, for example, I cannot navigate to the definition of hands module here:
mpHands = mp.solutions.hands```
However, I can "Go To Definition" for `mp.solutions`, which opens this file that imports other things:
```"""MediaPipe Solutions Python API."""
import mediapipe.python.solutions.hands
# Other imports omitted```
From `mp.solutions`, I can navigate to the definition for `hands` , which is what I wanted.
So, I suspect that the issue is that the `hands` module belongs to `mediapipe.python.solutions`, not `mediapipe.solutions`, where it was just imported. But surely, VSCode should be smart enough to navigate imports and show me the original module?
More info:
- mediapipe was installed with pip install.
- I have set language server to PyLance and restarted VS Code.
- Windows 11
- VSCode 1.94.2
- Python and PyLance extensions are installed in VSCode