forked from qt-creator/qt-creator
Clang: Improve diagnostic update timer
Start the timer after a translation unit change and stop after every diagnostic is sent. We should decrease the interval as we are sending the diagnostics because otherwise the sending is delayed to much. If the file watcher is emitting a file change we should only react to changes of files which have no editor open. Change-Id: I5431b4bf6b4c0b825bfc74bb9c697bb2d198fa26 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
This commit is contained in:
@@ -90,7 +90,7 @@ void ClangFileSystemWatcher::updateTranslationUnitsWithChangedDependencies(const
|
||||
{
|
||||
translationUnits.updateTranslationUnitsWithChangedDependency(filePath);
|
||||
|
||||
emit fileChanged();
|
||||
emit fileChanged(filePath);
|
||||
}
|
||||
|
||||
} // namespace ClangBackEnd
|
||||
|
||||
Reference in New Issue
Block a user