Maximum depth to search for parent classes. Default is 3. Set to 0 for unlimited
How it Works
This extension uses the VS Code Python extension's Language Server Protocol (LSP) features to analyze your code:
Override Detection: It scans the active document for class definitions and resolves their parent classes (even across files). It then compares methods to identify overrides.
Implementation Detection: It finds references to the current class to identify subclasses. It then checks those subclasses for methods that implement or override methods in the parent.
Gutter Markers: Gutter icons are visual indicators. Direct gutter icon clicks are not supported by the VS Code API.
Hover Navigation: Hover details can include navigation links that use the same commands as CodeLens navigation.
Performance: Detection is debounced (default 500ms) and optimized to skip non-class symbols to ensure a smooth editing experience.
Future Improvements
Toggle Settings: Add a setting to toggle "Parent -> Child" and "Child -> Parent" lens independently.
Localization: Support multiple languages for CodeLens text.
Contributing
Contributions are welcome!
Feel free to open an issue for bugs or feature requests, or submit a pull request.