mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-07-13 22:42:53 +03:00
eepp: Improved String::unescape. Improved JavaScript+TypeScript regex tokenization. Minor fix for unescaped search in text highlights in UICodeEditor.
ecode: Avoid reloading plugins when a new instance of ecode is opened. Improved plugins logs.
This commit is contained in:
@@ -153,12 +153,16 @@ void FormatterPlugin::loadFormatterConfig( const std::string& path, bool updateC
|
||||
return;
|
||||
json j;
|
||||
|
||||
if ( updateConfigFile ) {
|
||||
mConfigHash = String::hash( data );
|
||||
}
|
||||
|
||||
try {
|
||||
j = json::parse( data, nullptr, true, true );
|
||||
} catch ( const json::exception& e ) {
|
||||
Log::error( "FormatterPlugin::loadFormatterConfig - Error parsing formatter config from "
|
||||
"path %s, error: ",
|
||||
path.c_str(), e.what() );
|
||||
"path %s, error: %s, config file content:\n%s",
|
||||
path.c_str(), e.what(), data.c_str() );
|
||||
if ( !updateConfigFile )
|
||||
return;
|
||||
// Recreate it
|
||||
|
||||
Reference in New Issue
Block a user