-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Support getOccurrences on the TS Server #2666
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
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.
looks like you are missing the actual handling of the command in onMessage
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.
Yup, just sent that part out. I'm not that familiar with the server so I'm still getting a feel for things.
|
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. |
|
You could make optional the lineText field in the ReferencesResponseItem and then use it for occurrences. |
|
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 |
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.
what does 'false' mean?
src/server/session.ts
Outdated
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.
if you are using destructuring i would put it everywhere in this method for consistency.
|
👍 |
Support getOccurrences on the TS Server
No description provided.