| 42 | } |
| 43 | |
| 44 | QList<ContentFile> ContextManager::getContentFiles(const QStringList &filePaths) const |
| 45 | { |
| 46 | QList<ContentFile> files; |
| 47 | for (const QString &path : filePaths) { |
| 48 | auto project = ProjectExplorer::ProjectManager::projectForFile( |
| 49 | Utils::FilePath::fromString(path)); |
| 50 | if (project && m_ignoreManager->shouldIgnore(path, project)) { |
| 51 | LOG_MESSAGE(QString("Ignoring file in context due to .qodeassistignore: %1").arg(path)); |
| 52 | continue; |
| 53 | } |
| 54 | |
| 55 | ContentFile contentFile = createContentFile(path); |
| 56 | files.append(contentFile); |
| 57 | } |
| 58 | return files; |
| 59 | } |
| 60 | |
| 61 | QStringList ContextManager::getProjectSourceFiles(ProjectExplorer::Project *project) const |
| 62 | { |
no test coverage detected