ecode: Minor fixes.

This commit is contained in:
Martín Lucas Golini
2023-04-10 12:02:20 -03:00
parent f3e98ba745
commit 5632caa5ff
9 changed files with 39 additions and 5 deletions

View File

@@ -159,7 +159,11 @@ void FormatterPlugin::loadFormatterConfig( const std::string& path, bool updateC
Log::error( "FormatterPlugin::loadFormatterConfig - Error parsing formatter config from "
"path %s, error: ",
path.c_str(), e.what() );
return;
if ( !updateConfigFile )
return;
// Recreate it
j = json::parse( "{\n \"config\":{},\n \"keybindings\":{},\n \"formatters\":[]\n}\n",
nullptr, true, true );
}
if ( j.contains( "config" ) ) {