logic: sonargraph fixes
* updated sonargraph project icon * fixed Sonargraph SourceGroup to only return indexer commands for requested files * fixed refresh info generator to ignore non-existing files
This commit is contained in:
@@ -35,7 +35,14 @@ void IndexerCommandList::shuffle()
|
||||
std::vector<PairType> sourceFileSizesToCommands;
|
||||
for (std::shared_ptr<IndexerCommand> command: m_commands)
|
||||
{
|
||||
sourceFileSizesToCommands.push_back(std::make_pair(FileSystem::getFileByteSize(command->getSourceFilePath()), command));
|
||||
if (command->getSourceFilePath().exists())
|
||||
{
|
||||
sourceFileSizesToCommands.push_back(std::make_pair(FileSystem::getFileByteSize(command->getSourceFilePath()), command));
|
||||
}
|
||||
else
|
||||
{
|
||||
sourceFileSizesToCommands.push_back(std::make_pair(1, command));
|
||||
}
|
||||
}
|
||||
std::sort(sourceFileSizesToCommands.begin(), sourceFileSizesToCommands.end(), [](const PairType& p, const PairType& q){ return p.first > q.first; });
|
||||
|
||||
|
||||
@@ -170,7 +170,13 @@ std::set<FilePath> RefreshInfoGenerator::getAllSourceFilePaths(const std::vector
|
||||
{
|
||||
if (sourceGroup->getStatus() == SOURCE_GROUP_STATUS_ENABLED)
|
||||
{
|
||||
utility::append(allSourceFilePaths, sourceGroup->getAllSourceFilePaths());
|
||||
for (const FilePath& sourceFilePath : sourceGroup->getAllSourceFilePaths())
|
||||
{
|
||||
if (sourceFilePath.exists())
|
||||
{
|
||||
allSourceFilePaths.insert(sourceFilePath);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user