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

builtin/provider/terraform: Add field descriptions #26836

Merged
merged 1 commit into from
Nov 7, 2020

Conversation

radeksimko
Copy link
Member

These fields are well documented in the docs, but this provides descriptions for the schema export (terraform providers schema -json) which is in turn used by the language server.

In other words this enhances the user experience of user editing configuration with the Terraform language server - we can display these descriptions e.g. in completion selectbox or on hover.


I have mostly copy-pasted these from the linked docs and it seems that we use dot at the end of every description. I'm assuming this is intended, even though in most cases it's not a full sentence? Someone with better english grammar knowledge please confirm or correct me if I'm wrong. cc @nfagerlund

@codecov
Copy link

codecov bot commented Nov 6, 2020

Codecov Report

Merging #26836 into master will increase coverage by 0.02%.
The diff coverage is 100.00%.

Impacted Files Coverage Δ
builtin/providers/terraform/data_source_state.go 88.53% <100.00%> ( 1.48%) ⬆️
terraform/evaluate.go 53.11% <0.00%> ( 0.41%) ⬆️
dag/walk.go 92.25% <0.00%> ( 0.70%) ⬆️
internal/providercache/dir.go 73.46% <0.00%> ( 6.12%) ⬆️

Copy link
Member

@nfagerlund nfagerlund left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome!

Re: grammar, this looks good to me. Two things about that:

  • The most important thing to me is making sure a given set of things doesn't have a mixture of sentence-punctuation and fragment-punctuation. So if one or two items in a set need to be full sentences, we should also style the rest of them with periods at the end.
  • Even though these descriptions don't seem like "complete" sentences (with subject object verb), it's totally valid to read them as sentences in the context of a surrounding dialog. Like: "What is this?" "The workspace to use." See? And in this case, the surrounding dialog is defined by the usage context (completion helpers) and the other members of the set.

Does that make sense?

@radeksimko
Copy link
Member Author

That makes sense, thank you for the explanation and review Nick!

@radeksimko radeksimko merged commit d011d0d into master Nov 7, 2020
@radeksimko radeksimko deleted the terraform-provider-descriptions branch November 7, 2020 10:33
@ghost
Copy link

ghost commented Dec 8, 2020

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.

@ghost ghost locked as resolved and limited conversation to collaborators Dec 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants