I'm working on a python project within a pretty large multi-language mono-repo with VSCode's python tools (pylance). The root of the workspace(/repo) is not the root module of python imports.
When attempting to "Quick-Fix" an undefined variable, the language server is able to resolve it and find an import path, but the proposed import is relative to the root of the workspace.
For example, I may be working on a file:
${workspaceFolder}/backend/src/saasbox/api/auth/serializers.py
... and need to import something from:
${workspaceFolder}/backend/src/saasbox/api/modules/identity.py
... Ideally the proposed import module would be:
import Thing from saasbox.api.modules.identity
BUT it is import Thing from backend.src.saasbox.api.modules.identity
, which isn't what I want. Is there any setting to change this?