MCPcopy Create free account
hub / github.com/Palm1r/QodeAssist / getContentFiles

Method getContentFiles

context/ContextManager.cpp:44–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44QList<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
61QStringList ContextManager::getProjectSourceFiles(ProjectExplorer::Project *project) const
62{

Callers 3

recomputeMethod · 0.80
sendMessageMethod · 0.80

Calls 2

shouldIgnoreMethod · 0.80
appendMethod · 0.80

Tested by

no test coverage detected