Skip to content

Support getOccurrences on the TS Server#2666

Merged
DanielRosenwasser merged 9 commits into
masterfrom
occurrencesOnServer
Apr 9, 2015
Merged

Support getOccurrences on the TS Server#2666
DanielRosenwasser merged 9 commits into
masterfrom
occurrencesOnServer

Conversation

@DanielRosenwasser

Copy link
Copy Markdown
Member

No description provided.

Comment thread src/server/session.ts

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

looks like you are missing the actual handling of the command in onMessage

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yup, just sent that part out. I'm not that familiar with the server so I'm still getting a feel for things.

@steveluc

steveluc commented Apr 8, 2015

Copy link
Copy Markdown
Contributor

Get occurences and get references share the same return type. It would be good if they shared a return type in protocol.d.ts also.

@steveluc

steveluc commented Apr 8, 2015

Copy link
Copy Markdown
Contributor

You could make optional the lineText field in the ReferencesResponseItem and then use it for occurrences.

@DanielRosenwasser

Copy link
Copy Markdown
Member Author

On one hand, I agree that they are frankly similar and we'd be reusing code; on the other, I somewhat feel like we'd be conflating two concepts. Is lineText always included for a ReferencesResponseItem?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

what does 'false' mean?

Comment thread src/server/session.ts Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

if you are using destructuring i would put it everywhere in this method for consistency.

@mhegazy

mhegazy commented Apr 8, 2015

Copy link
Copy Markdown
Contributor

👍

DanielRosenwasser added a commit that referenced this pull request Apr 9, 2015
Support getOccurrences on the TS Server
@DanielRosenwasser DanielRosenwasser merged commit 4eb8c73 into master Apr 9, 2015
@DanielRosenwasser DanielRosenwasser deleted the occurrencesOnServer branch April 9, 2015 01:11
@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.

5 participants