-
Notifications
You must be signed in to change notification settings - Fork 759
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
@description attribute to document params, outputs, resources & vars and show description hovers #1665
Comments
For parameters we already do support |
I also miss the @description property for outputs, as ARM is supporting that. |
cc @bmoore-msft Where are these descriptions consumed and displayed? I didn't realize ARM Template outputs supported a |
Got it - I see you are parsing out the descriptions in the README, so the use case definitely makes sense. |
the metadata property is a generic language construct - we (ARM) only use it on params afaiki but some RPs (and I'm sure customers @rahalan) use it in other places in the template (outputs, resources). |
@alex-frankel |
Note - renaming from The main thing I'm after here is to allow annotating any declaration ( |
so thinking of adding I would lean toward the latter since optimizing for client consumption of it rather than the tools... |
The latter. I'll update the title & description of this issue to clarify that. |
We should provide a mechanism to enhance declarations with documentation that can show up in hovers.
This would be especially useful when mousing over module parameters or outputs which are defined in a separate file, or references to variables defined elsewhere in the document. We could also potentially consider using it to generate ARM JSON metadata fields.
Example:
Originally discussed here: #64 (comment)
EDIT 2021-08-09 - changed
@doc()
to@description()
in this proposal, as it has already been implemented forparam
.The text was updated successfully, but these errors were encountered: