Skip to content

Extend onHover with symbol information #221

Closed
@skovhus

Description

@skovhus

When hovering over a word we have different strategies for providing documentation (explainshell, man pages, help), but we could also provide information about symbols (i.e. variables and functions).

There are at least two cases:

  • symbols defined inside the file (not sure if we should do anything here)
  • symbols defined outside the file / in the workspace (we could copy the behavior for when auto-completing "Function defined in ../some-file.sh")

https://github.com/bash-lsp/bash-language-server/blob/master/server/src/server.ts#L183

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions