Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

Hover/ctrl+Hover/ctrl+click on non-leaf symbols #991

Closed
norru opened this issue Aug 14, 2018 · 3 comments
Closed

Hover/ctrl+Hover/ctrl+click on non-leaf symbols #991

norru opened this issue Aug 14, 2018 · 3 comments

Comments

@norru
Copy link

norru commented Aug 14, 2018

Not sure this has been addressed before. This is in context of my use case of RLS in Eclipse Rust.

Most symbols hover yield to the following in the logs:

org.eclipse.corrosion.rls to LSP4E:{"jsonrpc":"2.0","id":1189,"result":{"contents":[],"range":null}}

as a result, hover click on non-leaf symbols

  • module names
  • trait names
  • macros

doesn't have any effect.

For instance, in a line such as

Message::Event(Event::PickMinion(position))

Hover/navigate works for the symbols PickMinion, position and the first instance of Event
Hover/navigate does not work for the symbols Message, seconds instance of Event

Expected action would be to always be able to hint/navigate to where any symbol is defined.

@nrc
Copy link
Member

nrc commented Aug 14, 2018

This is expected, it is because we don't information from the compiler in these cases. It is something we hope to fix, but not sure when exactly.

@nrc nrc closed this as completed Aug 14, 2018
@norru
Copy link
Author

norru commented Aug 14, 2018

Why has this been closed then?

@nrc
Copy link
Member

nrc commented Aug 15, 2018

macros is tracked at rust-dev-tools/rls-analysis#50
traits modules is tracked at rust-dev-tools/rls-analysis#109

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants