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

Display function parameter description on hover #1248

Open
dbanck opened this issue Apr 19, 2023 · 0 comments
Open

Display function parameter description on hover #1248

dbanck opened this issue Apr 19, 2023 · 0 comments
Labels
enhancement New feature or request textDocument/hover

Comments

@dbanck
Copy link
Member

dbanck commented Apr 19, 2023

Context

While all functions have a description that we display on completion, hover, and signature help, some also have parameters with extra descriptions, e.g., bcrypt or chunklist.

CleanShot 2023-04-19 at 15 51 36@2x

We could also display a parameter description when hovering over an existing parameter instead of just showing the type.

CleanShot 2023-04-19 at 15 52 15@2x

Proposal

  • Extend HoverAtPos for functions to pass down the parameter description in hcl-lang
@dbanck dbanck added the enhancement New feature or request label Apr 19, 2023
@dbanck dbanck transferred this issue from hashicorp/vscode-terraform Apr 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request textDocument/hover
Projects
None yet
Development

No branches or pull requests

1 participant