mirror of
https://github.com/Palm1r/QodeAssist.git
synced 2025-06-03 17:18:24 -04:00
fix: Add log for checking file path
This commit is contained in:
parent
365f8306cb
commit
90f9babf20
@ -137,10 +137,18 @@ bool IgnoreManager::matchesIgnorePatterns(const QString &path, const QStringList
|
|||||||
|
|
||||||
QString IgnoreManager::ignoreFilePath(ProjectExplorer::Project *project) const
|
QString IgnoreManager::ignoreFilePath(ProjectExplorer::Project *project) const
|
||||||
{
|
{
|
||||||
if (!project)
|
if (!project) {
|
||||||
return QString();
|
return QString();
|
||||||
|
}
|
||||||
|
|
||||||
return project->projectDirectory().toUrlishString() + "/.qodeassist/qodeassistignore";
|
QString path = project->projectDirectory().toUrlishString() + "/.qodeassist/qodeassistignore";
|
||||||
|
|
||||||
|
QFileInfo fileInfo(path);
|
||||||
|
if (!fileInfo.exists() || !fileInfo.isFile()) {
|
||||||
|
LOG_MESSAGE(QString("File .qodeassistignore not found at path: %1").arg(path));
|
||||||
|
}
|
||||||
|
|
||||||
|
return path;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace QodeAssist::Context
|
} // namespace QodeAssist::Context
|
||||||
|
Loading…
x
Reference in New Issue
Block a user