-
Notifications
You must be signed in to change notification settings - Fork 770
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
Pylance with a multi-root workspace #6318
Comments
we assumed |
I am finding multiple issues here. tackling one by one.
|
Item 2 was an intentional design choice, but maybe it's worth revisiting. The |
We (Pylance) have already been supporting absolute paths (or relative paths outside of a root) in extra paths for multi-root workspace users. They can also use ${workspaceFolder:xxx} to point to other roots in the settings.json. There are multiple ways users have been doing this, such as legacy editable installs, PYTHONPATH, etc., and extra paths are also one of the methods users have been utilizing. They could also place all repositories under the same root and use other configurations (extra paths, execution environments, include/exclude, etc.) to set it up under one workspace. However, we don't force them to use any particular method since each has its own pros and cons. for example, if a user is the only one using it, multi root workspace that points to each repo with extra path with |
This issue has been fixed in prerelease version 2024.9.100, which we've just released. You can find the changelog here: CHANGELOG.md |
Discussed in #6303
Originally posted by splint33 August 27, 2024
Hi everyone, I'm kinda new to Pylance, sorry if my question is dumb.
I have a VSCode workspace, containing multiple folders. Each folder is a GIT repository.
My code-workspace is looking like that at the moment:
When I edit lib1, I must restart the language server in order to be able to see changes in the root folder.
I understand that Pylance is indexing each folder individually at the start of the language server, and seems to use a cached version of the index.
Changes made into lib1 are reflected into lib1 immediately, but not on other workspace folders.
Is there a way to keep this structure and make it work with pylance ?
Thanks
The text was updated successfully, but these errors were encountered: