Commit 23f99971 authored by Mark Nauwelaerts's avatar Mark Nauwelaerts
Browse files

lspclient: adjust symbol view detail presentation

parent 84f9368e
......@@ -371,7 +371,7 @@ public:
if (!symbol.detail.isEmpty()) {
details = true;
}
auto detail = show_detail ? symbol.detail : QString();
auto detail = show_detail && !symbol.detail.isEmpty() ? QStringLiteral(" [%1]").arg(symbol.detail) : QString();
node->setText(symbol.name + detail);
node->setIcon(*icon);
node->setData(QVariant::fromValue<KTextEditor::Range>(symbol.range), Qt::UserRole);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment