Commit 99550db4 authored by Mark Nauwelaerts's avatar Mark Nauwelaerts

lspclient: forego creating an empty diagnostics top-entry

parent d924f7ef
......@@ -1341,6 +1341,10 @@ public:
QStandardItem *topItem = getItem(*m_diagnosticsModel, diagnostics.uri);
if (!topItem) {
// no need to create an empty one
if (diagnostics.diagnostics.size() == 0) {
topItem = new QStandardItem();
Markdown is supported
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