| 50 | } |
| 51 | |
| 52 | ProjectExplorer::Project *RulesLoader::getActiveProject() |
| 53 | { |
| 54 | auto currentEditor = Core::EditorManager::currentEditor(); |
| 55 | if (currentEditor && currentEditor->document()) { |
| 56 | Utils::FilePath filePath = currentEditor->document()->filePath(); |
| 57 | auto project = ProjectExplorer::ProjectManager::projectForFile(filePath); |
| 58 | if (project) { |
| 59 | return project; |
| 60 | } |
| 61 | } |
| 62 | |
| 63 | return ProjectExplorer::ProjectManager::startupProject(); |
| 64 | } |
| 65 | |
| 66 | QString RulesLoader::loadAllMarkdownFiles(const QString &dirPath) |
| 67 | { |