mirror of
https://github.com/Palm1r/QodeAssist.git
synced 2025-11-30 22:43:00 -05:00
fix: Edit file tool take only absolute or relative path to file
This commit is contained in:
@ -52,6 +52,16 @@ public:
|
||||
* @return Absolute file path if found, empty string otherwise
|
||||
*/
|
||||
static QString findFileInProject(const QString &filename);
|
||||
|
||||
/**
|
||||
* @brief Get the project root directory
|
||||
*
|
||||
* Returns the root directory of the first open project.
|
||||
* If multiple projects are open, returns the first one.
|
||||
*
|
||||
* @return Absolute path to project root, or empty string if no project is open
|
||||
*/
|
||||
static QString getProjectRoot();
|
||||
};
|
||||
|
||||
} // namespace QodeAssist::Context
|
||||
|
||||
Reference in New Issue
Block a user