Prechádzať zdrojové kódy

LanguageServers: Add FileDB::project_root() getter

Itamar 4 rokov pred
rodič
commit
c4ff7c6f8e

+ 1 - 0
Userland/DevTools/HackStudio/LanguageServers/FileDB.h

@@ -23,6 +23,7 @@ public:
     bool add(const String& filename, const String& content);
     bool add(const String& filename, const String& content);
 
 
     void set_project_root(const String& root_path) { m_project_root = root_path; }
     void set_project_root(const String& root_path) { m_project_root = root_path; }
+    const String& project_root() const { return m_project_root; }
 
 
     void on_file_edit_insert_text(const String& filename, const String& inserted_text, size_t start_line, size_t start_column);
     void on_file_edit_insert_text(const String& filename, const String& inserted_text, size_t start_line, size_t start_column);
     void on_file_edit_remove_text(const String& filename, size_t start_line, size_t start_column, size_t end_line, size_t end_column);
     void on_file_edit_remove_text(const String& filename, size_t start_line, size_t start_column, size_t end_line, size_t end_column);