Skip to content

[json] hovers for const should look the same as with enum #165657

@MariaSolOs

Description

@MariaSolOs

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.74.0-insider
  • OS Version: Windows_NT x64 10.0.22623

In a package.json file, JSON hovers will correctly use the description of the property or the value for enum types. For example, notice the difference when hovering over extensionKind versus hovering over workspace:
image
image

This isn't always the case in other files, even when a JSON schema that has descriptions for the property and each value is included. As an example, dprint is an extension that has JSON schemas for each of its plugins (example), but then hovers only use the description of the current value:
image
image

From just a quick look it seems like dprints schema is correct, so this might be a problem with the JSON language service...?

Metadata

Metadata

Assignees

Labels

feature-requestRequest for new features or functionalityhelp wantedIssues identified as good community contribution opportunitiesjsonJSON support issues

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions