I use VSCode write my code in remote Linux Server with Python and Pylance extensions. but the Pylance don't work in my root folder, like this:
Pylance don't work, the color of import module don't change
However, when i change my workspace folder, it works, like this:
Pylance can work, the color of import module changed and it recognized 'cv2' module didn't import
I want to know why it happened and how to fix it.
File > Preferences > Settings
and make sure thePython › Analysis: Enabled
setting is checked.If you're still facing issues after trying these steps, it might be a bug in the Pylance extension. In that case, you might want to report the issue on the Pylance GitHub repository.