microsoft / microsoft/TypeScript
Allow to find references of the actual type
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 111k
- Forks
- 14.3k
- Avg merge
- 2d 4h
- Merged PRs (30d)
- 132
Description
I feel it is impossible with TS to find all calls to a method of a type that is defined in a very generic interface, such as dispose:

This makes it basically impossible to find all references of e.g. the dispose method of EditorInput.
Is there something we can do? My current only workaround is to remove all interfaces temporarily so that the dispose method does not come in from a generic interface.
Maybe the references viewlet could group by type?
//cc @jrieken
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names no files, tests, or implementation entry points. Start by tracing the TypeScript references view for methods inherited from generic interfaces, then determine whether references can be associated with the actual type or grouped by type. Done means users can find calls to a method on a specific type such as EditorInput without temporarily removing interfaces.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- developer-experience
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100