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

Provide function signature help #857

Closed
3 tasks done
radeksimko opened this issue Apr 7, 2022 · 1 comment · Fixed by #1077
Closed
3 tasks done

Provide function signature help #857

radeksimko opened this issue Apr 7, 2022 · 1 comment · Fixed by #1077
Assignees
Labels
Milestone

Comments

@radeksimko
Copy link
Member

radeksimko commented Apr 7, 2022

Background

LSP provides textDocument/signatureHelp to provide the client with data about a function within the context of a function call.

Terraform configuration language has a number of built-in functions, some of which come from HCL.

Proposal

Function Signature Help

After picking the function name from a completion popup, or typing the name and the "trigger character" ( (opening brace).

image3

Implementation Notes

  • Support built-in functions #37
  • Introduce SignatureAtPos(filename string, pos hcl.Pos) (*FuncSignature, error) into PathDecoder in hcl-lang/decoder
  • Update hcl-lang in LS
@github-actions
Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants