-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Conversation
@@ -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[]; |
There was a problem hiding this comment.
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.
Let's get a test in for primitives: |
Let's also get a test for goToType on a constructor (i.e. what happens if I have |
Oh, and also a test for something with a type literal. |
@@ -589,6 +597,20 @@ module ts { | |||
}); | |||
} | |||
|
|||
/// GOTO Type |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
Remove the line I mentioned and then 👍 |
Get type definition at position
Implementation for goto type in the services and server layers.