Skip to content

goToDefinition: Use the name of a declaration (if possible) when creating DefinitionInfo #13367

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
2 commits merged into from
Jan 9, 2017

Conversation

ghost
Copy link

@ghost ghost commented Jan 9, 2017

Fixes #12270

@@ -4318,6 +4318,10 @@ namespace ts {
return createTextSpan(start, end - start);
}

export function createTextSpanFromNode(node: Node, sourceFile?: SourceFile): TextSpan {
Copy link
Contributor

Choose a reason for hiding this comment

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

wrong utlities.ts file, you probably want src/services/utilites.ts instead.

Copy link
Contributor

@mhegazy mhegazy left a comment

Choose a reason for hiding this comment

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

👍 With fix for the failing tests.

@ghost ghost merged commit 1570476 into master Jan 9, 2017
@ghost ghost deleted the goToDefinition_name branch January 9, 2017 22:06
@ghost ghost mentioned this pull request Feb 2, 2017
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
This pull request was closed.
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.

2 participants