pylance-release
pylance-release copied to clipboard
Show Type Hierarchy shows no results for types declared in notebooks
Environment data
- Language Server version: 2024.4.105
- OS and version: Windows 11
- Python version: 3.12.1
Code Snippet
class Base:
pass
class Derived(Base):
pass
Repro Steps
- Create a new notebook.
- Paste the code above in the first cell
- Right-click on
Baseand select "Show Type Hierarchy"
Expected behavior
Derived is listed as a subtype.
Actual behavior
No subtypes shown. This is because we're not decoding the URI within the TypeHierarchySubtypesParams and we attempt to use that within TypeHierarchyProvider.