pylance-release
pylance-release copied to clipboard
Virtual workspace has duplicates for show call hierarchy
Make sure you have a fork of pylance-release in github (not cloned locally)
- Create a virtual environment
- Start VS code from a command prompt where this virtual environment is active
- Make sure
enableSyncServeris set - Run
Open Remote Repository - Pick
Open repository from Github - Type in your alias/pylance-release
- Open the repository
- This will just open the root of pylance
- To get it to behave like a workspace, then do an
Open Folderfrom the file menu and pick your alias/pylance-release/testing/single - Open the showCallHierarchy.py file and do a show call hierarchy for
sqrt
Expected result:
Same as without virtual workspaces
Actual result:
callByName seems to be in the output twice:
Might be a dupe of https://github.com/microsoft/pylance-release/issues/5809
Now this seems to show nothing for virtual workspaces
when I debugged last time, it was due to same file added with 2 different uri (schema), so we ends up adding 2 entry for logically same file.