Use Call and Type Hierarchies
mainLSP provides hierarchical views for navigating code structure:
- Call Hierarchy: A tree-based view of all callers and callees of a function. It can be viewed in a side-by-side view or as a structured view of outgoing calls. Accessible via the right-click context menu or command palette.
- Type Hierarchy: Similar to call hierarchy, but used for navigating super/subtypes or parent/child classes.