redhat-developer / redhat-developer/lsp4ij

Add support for `typeHierarchy/supertypes` and `typeHierarchy/subtypes` and integrate those via the `codeInsight.gotoSuper` and `codeInsight.lineMarkerProvider` EPs.

Open
#652 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
344
Forks
113
Avg merge
5h 22m
Merged PRs (30d)
15

Description

JetBrains' IDEs provide extensive support for navigating up and down type hierarchy relationships. Some of this is already integrated via LSP4IJ, e.g., Go To Implementation(s) via #636, but others are missing. Minimally support for typeHierarchy/supertypes should be added and integrated into the IDE via the codeInsight.gotoSuper EP. I'm not sure whether or not typeHierarchy/subtypes would add much vs. what is already used for Go To Implementation(s).

Additionally it would be nice to add support for type/method hierarchy relationships in the editor gutter area via codeInsight.lineMarkerProvider and the information from these LSP features to provide clear visual representations of these type inheritance relationships.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the existing Go To Implementation(s) integration referenced in #636, then compare it with the LSP typeHierarchy/supertypes and typeHierarchy/subtypes specifications. Trace how the codeInsight.gotoSuper and codeInsight.lineMarkerProvider extension points are integrated; done requires an agreed scope and working type-hierarchy navigation or gutter representations.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
developer-experience, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.