-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Show hover results for multiple LSPs #9744
Show hover results for multiple LSPs #9744
Conversation
Updated to address some issues in previous commits.
|
suggestion (ui): a more visible separator between multiple results. Maybe some kind of bold horizontal line or even a double horizontal line. |
I wonder if we want to use the ui from #9974 instead |
The UI from in that PR looks cool! With a brief look, it seems that the code for signature help feature has been refactored with the new event system recently, while the hover feature is still using the old way. The event system helps dealing with the interactivity of cycling through async results. For the key binding for cycling, intuitively, I think it would be great to share the same keybindings with any popup feature, like in that PR, but I am not sure if it is possible under the current architecture. Considering the scale of refactoring and discussion of keybinding for cycling through "popup pages", maybe that could be another PR? Anyway, I have pushed the prefix improvement mentioned previously for now, so it is ready to merged as is. |
I opened another PR #10122 for the new approach with event system and cycling pages UX. |
I like the cycle approach better, let's close tgjsn in favor of #10122 👍 |
This PR attempts to address #8985.
Currently, only the first configured LSP is used for handling hover feature. This PR supports multiple configured LSPs and merged the results by appending in the popup markdown.
Result:
with single LSP configured
with multiple LSP configured
Testing:
languages.toml
to add multiple LSPsDiscussion
Ordering of results