Skip to content

Inlay hints drop function bodies while typing out missing arguments… #2092

Open
@hadronized

Description

@hadronized

…and it makes my life completely miserable. Basically, if you have a function such as openDir and you only put the path in (openDir(".", ), then ZLS would set the inlay hints of the return type as the body of the function.

EDIT: this happens when the function returns an error, actually. So basically, if try is not present, nor catch.

This is:

  1. Off setting; I don’t think it’s information that should leak to the return type.
  2. Extremely annoying when working with editor displaying them on the fly (I’m using Kakoune + kakoune-lsp); it shifts the view to the right with extreme padding (see attached screenshot).

screenshot-241124120521

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions