Changeset View
Changeset View
Standalone View
Standalone View
addons/lspclient/lspclientserver.cpp
Context not available. | |||||
719 | auto detail = item.value(MEMBER_DETAIL).toString(); | 719 | auto detail = item.value(MEMBER_DETAIL).toString(); | ||
---|---|---|---|---|---|
720 | auto doc = parseMarkupContent(item.value(MEMBER_DOCUMENTATION)); | 720 | auto doc = parseMarkupContent(item.value(MEMBER_DOCUMENTATION)); | ||
721 | auto sortText = item.value(QStringLiteral("sortText")).toString(); | 721 | auto sortText = item.value(QStringLiteral("sortText")).toString(); | ||
722 | if (sortText.isEmpty()) | ||||
723 | sortText = label; | ||||
722 | auto insertText = item.value(QStringLiteral("insertText")).toString(); | 724 | auto insertText = item.value(QStringLiteral("insertText")).toString(); | ||
725 | if (insertText.isEmpty()) | ||||
726 | insertText = label; | ||||
723 | auto kind = (LSPCompletionItemKind) item.value(MEMBER_KIND).toInt(); | 727 | auto kind = (LSPCompletionItemKind) item.value(MEMBER_KIND).toInt(); | ||
724 | ret.push_back({label, kind, detail, doc, sortText, insertText}); | 728 | ret.push_back({label, kind, detail, doc, sortText, insertText}); | ||
725 | } | 729 | } | ||
Context not available. |