mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-08-18 06:55:48 +03:00
Fix SpartanJ/ecode#169.
Shutdown correctly LSPs (wait for shudown response). Allow LSPs definition to declare dynamic vars that can run external commands to set the vars. Added AdeptLSP support (SpartanJ/ecode#157).
This commit is contained in:
@@ -1037,6 +1037,13 @@ void LSPClientPlugin::loadLSPConfig( std::vector<LSPDefinition>& lsps, const std
|
||||
lsp.host = obj.value( "host", "" );
|
||||
lsp.port = obj.value( "port", 0 );
|
||||
lsp.shareProcessWithOtherDefinition = obj.value( "share_process", false );
|
||||
if ( obj.contains( "vars" ) && obj.is_object() ) {
|
||||
auto vars = obj["vars"];
|
||||
for ( const auto& var : vars.items() ) {
|
||||
if ( var.value().is_string() )
|
||||
lsp.cmdVars[var.key()] = var.value().get<std::string>();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
lsp.commandParameters = obj.value( "command_parameters", lsp.commandParameters );
|
||||
|
||||
Reference in New Issue
Block a user