about summary refs log tree commit diff
path: root/tests/rustdoc-js-std/parser-errors.js
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-10-09 20:23:52 +0000
committerbors <bors@rust-lang.org>2024-10-09 20:23:52 +0000
commitee7c8b9a90921928458b46e48a95b7b5f0a4ed7b (patch)
tree9279ef6e29ea368d4a86723315c5641476c5c671 /tests/rustdoc-js-std/parser-errors.js
parent3e42fc55962fa19557ee2a34de192adebce11c47 (diff)
parent429d46dbb153ff2a3c4608777bf21ea66148aaea (diff)
downloadrust-ee7c8b9a90921928458b46e48a95b7b5f0a4ed7b.tar.gz
rust-ee7c8b9a90921928458b46e48a95b7b5f0a4ed7b.zip
Auto merge of #18245 - boattime:master, r=davidbarsky
fix: include description in label details when detail field is marked for …

Fixes https://github.com/rust-lang/rust-analyzer/issues/18231.

When omitting the autocomplete detail field, the autocomplete label details can still be returned. Currently the label details are missing the description field if the detail field is included in resolveSupport since it is being overwritten as None and opted to be sent with `completionItem/resolve`.

Example completion capabilities.
```
completion = {
    completionItem = {
        commitCharactersSupport = true,
        deprecatedSupport = true,
        documentationFormat = { "markdown", "plaintext" },
        insertReplaceSupport = true,
        insertTextModeSupport = {
            valueSet = { 1, 2 }
        },
        labelDetailsSupport = true,
        preselectSupport = true,
        resolveSupport = {
            properties = { "documentation", "detail", "additionalTextEdits", "sortText", "filterText", "insertText", "textEdit", "insertTextFormat", "insertTextMode" }
        },
        snippetSupport = true,
        tagSupport = {
            valueSet = { 1 }
        }
}
```
Diffstat (limited to 'tests/rustdoc-js-std/parser-errors.js')
0 files changed, 0 insertions, 0 deletions