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

Method getActiveProject

pluginllmcore/RulesLoader.cpp:52–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52ProjectExplorer::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
66QString RulesLoader::loadAllMarkdownFiles(const QString &dirPath)
67{

Callers

nothing calls this directly

Calls 2

documentMethod · 0.80
filePathMethod · 0.45

Tested by

no test coverage detected