Fix Editor project file generation to use custom code editor arguments

This commit is contained in:
2025-12-18 23:52:06 +02:00
parent f18e636aef
commit 74fd76e86c
10 changed files with 57 additions and 20 deletions

View File

@@ -152,6 +152,21 @@ String CodeEditingManager::GetName(CodeEditorTypes editorType)
return String::Empty;
}
}
String CodeEditingManager::GetGenerateProjectCustomArgs(CodeEditorTypes editorType)
{
const auto editor = GetCodeEditor(editorType);
if (editor)
{
return editor->GetGenerateProjectCustomArgs();
}
else
{
LOG(Warning, "Missing code editor type {0}", (int32)editorType);
return String::Empty;
}
}
void CodeEditingManager::OpenFile(CodeEditorTypes editorType, const String& path, int32 line)
{
const auto editor = GetCodeEditor(editorType);