-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MS Language Server] Go to definition cannot traverse workspaces #5944
Comments
Closing in favour of microsoft/python-language-server#1196 |
The issue is not a bug. LS only supports single root, it is not capable of handling multiple roots, especially with different versions of Python. Extension (and Visual Studio) runs multiple LS processes, one for each root (or project in solution in VS). Said instances are not able to communicate or navigate across tree spanning multiple processes. Making LS actually load multiple roots would a major architectural redesign. Thus the issue is that not that someone made a mistake (i.e. a bug) but rather conscious architectural design limitation. |
Closing in favour of #5132. |
Currently the MS Language Server won't allow jumping to a class (using Go to Definition) if it's found in a different VSCode workspace.
Environment data
Expected behaviour
Go to definition jumps to the
Level1Class
objectActual behaviour
Definition not found. Below is a gif.
Steps to reproduce:
upper_level_class.py
Level1Class
object.The text was updated successfully, but these errors were encountered: