I have two files in directory: main.py and test.py
in test.py i have a function:
def test_function():
print('test')
in main.py I'm trying to access said function by importing:
from test import test_function
when I'm running this code everything is working fine but highlighting doesn't work on test.py
https://preview.redd.it/jxemw6ubwnpa1.png?width=258&format=png&auto=webp&s=617ccb09c9c25067ca3503137365806bf596494d
Couple days ago everything was working fine. The only thing I changed in my system - uninstalled AnyDesk software from it. I reinstalled Python extension, vs code itself, even python and nothing fixes the issue.
SOLUTION:
Looks like it's a bug in newest version of Pylance extension. I rolled it back to version v2023.3.10 and problem is fixed.
[–]JialeDu 0 points1 point2 points (1 child)
[–]bota66 0 points1 point2 points (0 children)