Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Inlay Hint Support #1173

Open
Open
Labels
enhancementNew feature or request
@Popkornium18

Description

What is the problem this feature will solve?

Bash function calls with lots of arguments are hard to parse

somefunction()
{
 local -r foo=1ドル
 local -r bar=2ドル
 local -r foo2=3ドル
 local -r bar2=4ドル
 # Do something useful
}
somefunction one two three four

What is the feature you are proposing to solve the problem?

Inlay Hints try to solve this problem by displaying a "virtual text" with the argument name. Here is a lua example:

grafik

With inlay hints it could be displayed in the IDE like this:

somefunction foo: one bar: two foo2: three bar2: four

This is obviously a little tougher with bash, as there is no strict function argument definition that could be parsed. Possible solutions would be parsing (and possibly establishing) a docstring format that explains the arguments, or reacting to the pattern where the first lines of the function are renaming 1ドル and so on.

What alternatives have you considered?

No response

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

        AltStyle によって変換されたページ (->オリジナル) /