mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:07:44 +00:00
LanguageServers/FileDB: Allow m_project_root to be null
This commit is contained in:
parent
c49cf23a86
commit
545b6af305
1 changed files with 2 additions and 1 deletions
|
@ -67,7 +67,8 @@ String FileDB::to_absolute_path(const String& filename) const
|
|||
if (LexicalPath { filename }.is_absolute()) {
|
||||
return filename;
|
||||
}
|
||||
VERIFY(!m_project_root.is_null());
|
||||
if (m_project_root.is_null())
|
||||
return filename;
|
||||
return LexicalPath { String::formatted("{}/{}", m_project_root, filename) }.string();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue