Skip to content

Add container information to CallHierarchyItem #37061

@mjbvz

Description

@mjbvz

From microsoft/vscode#89616

Search Terms

  • call hierarchy
  • tsserver

Problem

Currently using the call hierarchy api, it can be difficult to browse through long list of callers and understand where those callers are:

Screen Shot 2020-02-26 at 3 12 17 PM

Suggestion

Add optional information about the container on the CallHierarchyItem type. For example, the NavTooItem has:

containerName?: string;
containerKind?: ScriptElementKind;

We should consider something similar for CallHierarchyItem

/cc @jrieken

Metadata

Metadata

Assignees

Labels

APIRelates to the public API for TypeScriptDomain: Symbol NavigationRelates to go-to-definition, find-all-references, highlighting/occurrences.Fix AvailableA PR has been opened for this issueIn DiscussionNot yet reached consensusNeeds ProposalThis issue needs a plan that clarifies the finer details of how it could be implemented.SuggestionAn idea for TypeScriptVS Code PriorityCritical issues that VS Code needs fixed in the current TypeScript milestone

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions