Skip to content

Get type definition at position #2966

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 8 commits into from
May 4, 2015
Merged

Conversation

mhegazy
Copy link
Contributor

@mhegazy mhegazy commented Apr 30, 2015

Implementation for goto type in the services and server layers.

@@ -987,6 +987,8 @@ module ts {
findRenameLocations(fileName: string, position: number, findInStrings: boolean, findInComments: boolean): RenameLocation[];

getDefinitionAtPosition(fileName: string, position: number): DefinitionInfo[];
getTypeDefinitionAtPosition(fileName: string, position: number): DefinitionInfo[];
Copy link
Member

Choose a reason for hiding this comment

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

We should review for a common name with other LS teams.

@DanielRosenwasser
Copy link
Member

Let's get a test in for primitives: string, boolean, number, any, symbol.

@DanielRosenwasser
Copy link
Member

Let's also get a test for goToType on a constructor (i.e. what happens if I have class C { }; C/*ref*/; and I request the type of C?

@DanielRosenwasser
Copy link
Member

Oh, and also a test for something with a type literal.

@@ -589,6 +597,20 @@ module ts {
});
}

/// GOTO Type
Copy link
Member

Choose a reason for hiding this comment

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

Remove this and the above line

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I added it to match the /// GOTO Definition above

@DanielRosenwasser
Copy link
Member

Remove the line I mentioned and then 👍

mhegazy added a commit that referenced this pull request May 4, 2015
@mhegazy mhegazy merged commit 15f4b58 into master May 4, 2015
@mhegazy mhegazy deleted the getTypeDefinitionAtPosition branch May 4, 2015 21:51
@microsoft microsoft locked and limited conversation to collaborators Jun 18, 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