Skip to content

Add containerName to CallHierarchyItem#38997

Merged
andrewbranch merged 3 commits intomicrosoft:masterfrom
andrewbranch:feature/37061
Jun 10, 2020
Merged

Add containerName to CallHierarchyItem#38997
andrewbranch merged 3 commits intomicrosoft:masterfrom
andrewbranch:feature/37061

Conversation

@andrewbranch
Copy link
Member

Adds a containerName to CallHierarchyItems:

  • For class methods and accessors (static or instance), uses the class declaration/expression’s name (if it exists)
  • For object literal methods and accessors, uses the assigned name of the object literal (if it exists)
  • For top-level function- and class-like declarations in a module declaration, uses the module name (if it is an identifier)

For all other CallHierarchyItems, containerName will be undefined. Note that fileName is already included separately on all items.

Fixes #37061

Loading
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add container information to CallHierarchyItem

5 participants