microsoft / microsoft/TypeScript

Allow to find references of the actual type

Open
#39,324 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Needs Proposal Suggestion
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:

image

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

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.