Skip to content

Show function signature while providing the arguments #3598

Open
@mfronczyk

Description

@mfronczyk

Is your feature request related to a problem? Please describe.

When adding a function call, the extension suggests a list of functions with signatures, but when a function is selected and you start providing the parameters, the signature is not visible anymore and you need to bring the signature back sometimes for more complex functions.

Describe the solution you'd like

It'd be nice to keep the tooltip with the function signature open till you finish the call and make the current parameter bold there. It seems that the VS code extension for Idris has such feature, so maybe it'd be possible to add it here also?

Please see the Idris solution here - swr1bm86/vscode-idris@fd42429

Activity

changed the title [-]Show function signature while typing[/-] [+]Show function signature while providing the arguments[/+] on May 16, 2023
michaelpj

michaelpj commented on May 16, 2023

@michaelpj
Collaborator

Looks like this is textDocument/signatureHelp, which we indeed don't have an implementation for.

alexnaspo

alexnaspo commented on May 26, 2023

@alexnaspo
Contributor

I would be interested in working on this. I started hacking something together in ghcide but I'm wondering if this should be done within a HLS plugin?

fendor

fendor commented on May 27, 2023

@fendor
Collaborator

It could be a plugin, but also part of ghcide directly, but let's see how the implementation looks like. If you require a slew of new dependencies, likely we want it in a plugin. If it basically can be done with the existing infrastructure, it is fine.

michaelpj

michaelpj commented on May 29, 2023

@michaelpj
Collaborator

Also, sorry, forgot to link to the pre-existing issue that has some discussion: #2348

michaelpj

michaelpj commented on May 29, 2023

@michaelpj
Collaborator

Hmm, possibly that is slightly different. I think that might be asking to show the argument doc in the main doc for an identifier? But we definitely also want them in signature help

michaelpj

michaelpj commented on Jun 12, 2023

@michaelpj
Collaborator

No, I think that issue is different. Signature help is triggered by the user writing a character, i.e. while they're writing the function application. If we want argument haddock to be visible afterwards then we need it to be in the hover as well.

samuel-williams-da

samuel-williams-da commented on Jun 9, 2024

@samuel-williams-da
Contributor

@alexnaspo I see you have a WIP branch, are you still working on this?

alexnaspo

alexnaspo commented on Jun 9, 2024

@alexnaspo
Contributor

@samuel-williams-da I was having some trouble and got a bit busy so please don't let it hold up anyone else's work

removed
HackathonThis issue is suitable for hackathon sessions
on Jun 7, 2025
linked a pull request that will close this issue on Jun 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @michaelpj@alexnaspo@mfronczyk@fendor@samuel-williams-da

      Issue actions

        Show function signature while providing the arguments · Issue #3598 · haskell/haskell-language-server