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:
Martín Lucas Golini
2023-05-25 02:10:41 -03:00
parent 6fa7f5c63b
commit 893943cc85
16 changed files with 100 additions and 31 deletions

View File

@@ -736,8 +736,8 @@ void LSPClientPlugin::loadLSPConfig( std::vector<LSPDefinition>& lsps, const std
j = json::parse( data, nullptr, true, true );
} catch ( const json::exception& e ) {
Log::error( "LSPClientPlugin::loadLSPConfig - Error parsing LSP 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
@@ -745,6 +745,10 @@ void LSPClientPlugin::loadLSPConfig( std::vector<LSPDefinition>& lsps, const std
nullptr, true, true );
}
if ( updateConfigFile ) {
mConfigHash = String::hash( data );
}
if ( j.contains( "config" ) ) {
auto& config = j["config"];
if ( config.contains( "hover_delay" ) )