microsoft / vscode-python

Python extension for Visual Studio Code
https://aka.ms/pvsc-marketplace
MIT License
4.25k stars 1.15k forks source link

highlighting differs in repl vs actual file #23699

Open eleanorjboyd opened 5 days ago

eleanorjboyd commented 5 days ago

Testing #23676

this is a nit and really a small item but testing_tools is highlighted in one but not the other. Also its interesting because the import works correctly on testing tools, even though it probably shouldn't since I commented out the part that adds the right directory to the path that allows the file to find the import. Not entirely sure what edits you are making to the path but that is a bit confusing

Screenshot 2024-06-25 at 10 26 58 AM

I printed out the path and it includes '/Users/eleanorboyd/.vscode-insiders/extensions/ms-python.python-2024.9.2024062506-darwin-arm64/python_files' which is not my cwd so im not entirely sure why it is added

eleanorjboyd commented 5 days ago

lmk if this doesn't make any sense- I was mostly just trying to dig into the path and understand the cwd for the repl given the file I called