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

Support for Link to Resource / Data Object Documentation In Editor Pop Up #765

Closed
seanturner026 opened this issue Jan 13, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@seanturner026
Copy link

Current Version

v0.25.2

Use-cases

When editing or creating a new resource, I frequently need to go to the terraform docs. This generally involves going to my browser URL bar, starting to type aws terraform $resource name. I would like to have a link hard coded to the documentation for the resource or data object in the editor pop up, which appears when mousing over a resource or data object.

Attempted Solutions

N/A

Proposal

This pop up appears when I mouse over the resource. Currently, not very much information is provided aside from the fact that this object is a resource, and the provider version. I think seeing a link to the latest terraform documentation would be very helpful. This should be feasible considering that there is no version hardcoded in the link to the documentation

https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudwatch_log_group

Screen Shot 2022-01-13 at 1 01 57 PM

Related LSP methods

Unsure. Sorry.

References

@seanturner026 seanturner026 added the enhancement New feature or request label Jan 13, 2022
@radeksimko
Copy link
Member

Hi @seanturner026
Thanks for the request.

I believe this is a duplicate of #190 so I'm going to close this issue to keep the conversation in one place.

We also track hashicorp/vscode-terraform#677 on the VS Code extension side, although all of the work will basically happen on LS side.

Either way there's some work to be done first on the Terraform Registry side, to ensure that we have links which are stable wrt resource and data source names. i.e. that we can guarantee that https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudwatch_log_group is a valid link for aws_cloudwatch_log_group. There a convention, but certainly no guarantees.

@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 Feb 13, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants