forked from qt-creator/qt-creator
Clang: Only get one diagnostic for a time out
Otherwise we can stall the backend process. Change-Id: I854d117546ad08026be8a42854739cabad8b67fd Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
This commit is contained in:
@@ -30,6 +30,7 @@
|
||||
|
||||
#include "clangipcserver.h"
|
||||
|
||||
#include "clangfilesystemwatcher.h"
|
||||
#include "codecompleter.h"
|
||||
#include "diagnosticset.h"
|
||||
#include "projectpartsdonotexistexception.h"
|
||||
@@ -64,8 +65,7 @@ ClangIpcServer::ClangIpcServer()
|
||||
client()->diagnosticsChanged(message);
|
||||
});
|
||||
|
||||
sendDiagnosticsTimer.setInterval(2000);
|
||||
sendDiagnosticsTimer.setSingleShot(true);
|
||||
sendDiagnosticsTimer.setInterval(1000);
|
||||
QObject::connect(&sendDiagnosticsTimer,
|
||||
&QTimer::timeout,
|
||||
[this] () { translationUnits.sendChangedDiagnostics(); });
|
||||
|
||||
Reference in New Issue
Block a user