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

Add descriptions in JSON schemas to display relevant information in VSCode hovers #499

Open
garrytrinder opened this issue Jan 17, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@garrytrinder
Copy link
Contributor

VS Code will use the standard description field from the JSON Schema specification in order to provide information about properties on hover and during autocomplete.

If you want your descriptions to support formatting like links, you can opt in by using Markdown in your formatting with the markdownDescription property.

{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "The name of the entry",
      "markdownDescription": "The name of the entry. [See the documentation](https://example.com)"
    }
  }
}

Note that markdownDescription is not part of the JSON schema specification but a VS Code-specific schema extension.

Source: https://code.visualstudio.com/Docs/languages/json#_use-rich-formatting-in-hovers

We should look at where we can provide rich descriptions with links to our documentation.

@waldekmastykarz waldekmastykarz added the enhancement New feature or request label Jan 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants