Skip to content

Adding display parts to definition items to support FindAllReferences #10542

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Aug 27, 2016

Conversation

riknoll
Copy link
Member

@riknoll riknoll commented Aug 25, 2016

Fixes #10541

Adds optional symbol display parts to the find all references results to aid in classifying the definition items that are returned.

@paulvanbrenk

@@ -1374,8 +1374,13 @@ namespace ts {
containerName: string;
}

export interface ReferencedSymbolDefinitionInfo extends DefinitionInfo {
// For more complex definitions where kind and name are insufficient to properly colorize the text
displayParts?: SymbolDisplayPart[];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is it optional? we are setting it all the time correct?

@paulvanbrenk
Copy link
Contributor

👍

@mhegazy
Copy link
Contributor

mhegazy commented Aug 25, 2016

we should add a fourslash test for it as well.

@mhegazy
Copy link
Contributor

mhegazy commented Aug 25, 2016

👍

@riknoll
Copy link
Member Author

riknoll commented Aug 26, 2016

Added fourslash test and fixed a few errors

@mhegazy
Copy link
Contributor

mhegazy commented Aug 27, 2016

👍

@riknoll riknoll merged commit 598ca48 into master Aug 27, 2016
@mhegazy mhegazy deleted the far_display_parts branch August 27, 2016 04:30
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants