Skip to content
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

Add Functions for Converting Between 'slicec' and 'tower_lsp' Types #59

Conversation

InsertCreativityHere
Copy link
Member

This function adds 2 helper methods for converting between
slicec::Span -> tower_lsp::Range and tower_lsp::Position -> slicec::Location
These represent the same concepts, and thankfully we chose different names, so it's not too hard to follow.

It also cleans up try_into_hover_result.
Currently, if the user hovers over something with no message to display, we return an jsonrpc::Error, which the caller just ignores and converts to None anyways. So, I changed the function to just return None, instead of creating this intermediate error thing.

@InsertCreativityHere InsertCreativityHere merged commit dc52db3 into zeroc-ice:main Jul 23, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants