镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

[tsserver] Support for "Search Hierarchy Type" #8268

Description

@angelozerr

It should be cool if tsserver could provide a new command "findHierarchyType" to retrieve list of types which implement an interface.

In other words I would like to provide te same feature than Eclipse plugins for Java inside typescript.java: open a popup which displays list of types (MyServiceA, MyServiceB etc) which implement an interface (IService):

typehierarchy

Activity

  1. DanielRosenwasser commented on Apr 25, 2016

    @DanielRosenwasser
    Member

    Are you asking about something like an "implement interface" command?

  2. sandersn commented on Apr 25, 2016

    @sandersn
    Member

    Sounds more like a restricted "find all references" that only shows references for I that have implements I. I remember using this with C# too, and it's quite useful.

  3. DanielRosenwasser commented on Apr 25, 2016

    @DanielRosenwasser
    Member

    So find all implementations?

  4. angelozerr commented on Apr 26, 2016

    @angelozerr
    Author

    Are you asking about something like an "implement interface" command?

    Yes.

    So find all implementations?

    Exactly!

  5. angelozerr commented on Aug 22, 2016

    @angelozerr
    Author

    It seems that #10482 should fix this issue?

  6. micaelgallego commented on Aug 22, 2016

    @micaelgallego

    Maybe it can be implemented calling to this command several times (once per node in the hierarchy tree). But maybe it is too slow

  7. RyanCavanaugh commented on Aug 13, 2018

    @RyanCavanaugh
    Member

    Taking #10482 as the definitive fix

  8. locked as resolved and limited conversation to collaborators on Oct 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Domain: APIRelates to the public API for TypeScriptDuplicateAn existing issue was already createdSuggestionAn idea for TypeScript

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions