mirror of
https://github.com/godotengine/godot.git
synced 2026-02-24 22:36:38 +03:00
LSP: Don't serialize empty documentation
This commit is contained in:
@@ -1077,8 +1077,12 @@ struct CompletionItem {
|
|||||||
dict["insertText"] = insertText;
|
dict["insertText"] = insertText;
|
||||||
}
|
}
|
||||||
if (resolved) {
|
if (resolved) {
|
||||||
dict["detail"] = detail;
|
if (!detail.is_empty()) {
|
||||||
dict["documentation"] = documentation.to_json();
|
dict["detail"] = detail;
|
||||||
|
}
|
||||||
|
if (!documentation.value.is_empty()) {
|
||||||
|
dict["documentation"] = documentation.to_json();
|
||||||
|
}
|
||||||
dict["deprecated"] = deprecated;
|
dict["deprecated"] = deprecated;
|
||||||
dict["preselect"] = preselect;
|
dict["preselect"] = preselect;
|
||||||
if (!sortText.is_empty()) {
|
if (!sortText.is_empty()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user