Skip to content

Get type definition at position#2966

Merged
mhegazy merged 8 commits into
masterfrom
getTypeDefinitionAtPosition
May 4, 2015
Merged

Get type definition at position#2966
mhegazy merged 8 commits into
masterfrom
getTypeDefinitionAtPosition

Conversation

@mhegazy
Copy link
Copy Markdown
Contributor

@mhegazy mhegazy commented Apr 30, 2015

Implementation for goto type in the services and server layers.

Comment thread src/services/services.ts
Copy link
Copy Markdown
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
Copy Markdown
Member

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

@DanielRosenwasser
Copy link
Copy Markdown
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
Copy Markdown
Member

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

Comment thread src/services/shims.ts
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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