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

@@ -732,7 +732,11 @@ void LSPClientPlugin::loadLSPConfig( std::vector<LSPDefinition>& lsps, const std
Log::error( "LSPClientPlugin::loadLSPConfig - Error parsing LSP config from "
"path %s, error: ",
path.c_str(), e.what() );
return;
if ( !updateConfigFile )
return;
// Recreate it
j = json::parse( "{\n \"config\":{},\n \"keybindings\":{},\n \"servers\":[]\n}\n",
nullptr, true, true );
}
if ( j.contains( "config" ) ) {