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 title schema property in completion items #209

Open
NotWearingPants opened this issue Oct 5, 2023 · 0 comments
Open

Support title schema property in completion items #209

NotWearingPants opened this issue Oct 5, 2023 · 0 comments

Comments

@NotWearingPants
Copy link

NotWearingPants commented Oct 5, 2023

Currently jsonCompletion.ts returns CompletionItems with their documentation property set to the value of description or markdownDescription from the JSON schema, which VSCode then displays as a popup next to the list of completions:


image

VSCode also let's completions control a short description shown right in the completions list, e.g. in JS:


image

This text is fetched from the CompletionItem's detail property (from the LSP spec).

JSON schema supports both a description and a title field (JSON schema spec) for such UI purposes.

Can you pass titles from the schema to details in completion items?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant