Merge pull request #105350 from HolonProduction/lsp-empty-docs
LSP: Don't serialize empty documentation
This commit is contained in:
@@ -1077,8 +1077,12 @@ struct CompletionItem {
|
||||
dict["insertText"] = insertText;
|
||||
}
|
||||
if (resolved) {
|
||||
dict["detail"] = detail;
|
||||
dict["documentation"] = documentation.to_json();
|
||||
if (!detail.is_empty()) {
|
||||
dict["detail"] = detail;
|
||||
}
|
||||
if (!documentation.value.is_empty()) {
|
||||
dict["documentation"] = documentation.to_json();
|
||||
}
|
||||
dict["deprecated"] = deprecated;
|
||||
dict["preselect"] = preselect;
|
||||
if (!sortText.is_empty()) {
|
||||
|
||||
Reference in New Issue
Block a user