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

signature: use the suggested LSP signature when changed #10655

Merged
merged 1 commit into from
May 3, 2024

Conversation

karthago1
Copy link
Contributor

some LSPs does update the active signature and some not. To make both worlds happy, make the active signature more intelligent.

  1. SignatureHelp store now the suggested lsp_signature
  2. if the lsp_signature changes then use it
  3. otherwise use the last signature from the old popup
  4. in case the old signature doesn't exist anymore, show the last signature

Copy link
Member

@the-mikedavis the-mikedavis left a comment

Choose a reason for hiding this comment

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

Behavior-wise this looks great, thanks for following up! I just have a minor readability nit

helix-term/src/handlers/signature_help.rs Outdated Show resolved Hide resolved
some LSPs does update the active signature and some not. To make both
worlds happy, make the active signature more intelligent.

1. SignatureHelp store now the suggested lsp_signature
2. if the lsp_signature changes then use it
3. otherwise use the last signature from the old popup
4. in case the old signature doesn't exist anymore, show the last signature

Signed-off-by: Ben Fekih, Hichem <hichem.f@live.de>
@pascalkuthe pascalkuthe merged commit cfca308 into helix-editor:master May 3, 2024
6 checks passed
Vulpesx pushed a commit to Vulpesx/helix that referenced this pull request Jun 7, 2024
…#10655)

some LSPs does update the active signature and some not. To make both
worlds happy, make the active signature more intelligent.

1. SignatureHelp store now the suggested lsp_signature
2. if the lsp_signature changes then use it
3. otherwise use the last signature from the old popup
4. in case the old signature doesn't exist anymore, show the last signature

Signed-off-by: Ben Fekih, Hichem <hichem.f@live.de>
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.

None yet

3 participants