Repository navigation
Show title and description in completions - #154
srivastava-diya wants to merge 1 commit into
Conversation
|
Things that I have left for now and need a little feedback on,
|
|
Some more suggestions on the Other things that we can do
I'd rather do these as separate PRs like by creating sub issues from this main issue. Which ones are worth doing, and is there an order? |
|
Looks good so far. Do a rebase. There are a couple of things I merged today that I think will affect this. Let's keep this PR to
👍 These are all part of implementing the vscode vocab
I don't think we want those to be completions, but there might be another LSP feature that makes sense. I'm thinking about something like the placeholder text in an HTML form that's greyed out and disappears when you start typing.
Maybe. I can decide if that's something I want it to do, but I'm leaning toward no.
We should definitely look into this one. |
20f6ec1 to
d4163ff
Compare
Rebased on the latest main and pushed. One thing came up in the rebase. Deprecated support and this PR both set the completion's Is that what we want, or should a deprecated completion show its title and description together with the deprecation message?
Okay, I'll open separate issues for those keywords.
Makes sense, I'll leave
Okay, I'll leave that one alone unless you decide you want it.
I'll open an issue for sending plain text to editors that don't support markdown. |
Show everything, but lead with the deprecation. |
Part of #147
Opening this as a draft because it covers the title and description part of the issue.
What this does
Completions now show the title and description from the schema in their documentation panel.
Property completions show every title and description that applies to the property, the same as Hover. With
the completion for
nameshows both "A" and "B".Value completions show only the value's own title and description. With
the completion for
redshows "Red" and not "Color".bluehas no documentation.A completion with no title or description has no documentation at all.
How
describeAnnotations, so Hover and completions format things the same way. Hover's output is unchanged.PropertyCompletionsProviderandValueCompletionsProvidersetdocumentationon their items using that function.Tests
Added 12 tests across the property and value completion test files, including the two examples above.