| 332 | } |
| 333 | |
| 334 | PluginRequestHandle LSPClientPlugin::processSignatureHelpRequest( const PluginMessage& msg ) { |
| 335 | if ( !msg.isRequest() || !msg.isJSON() ) |
| 336 | return {}; |
| 337 | |
| 338 | auto res = getLSPLocationFromJSON( mClientManager, msg.asJSON() ); |
| 339 | if ( !res.server ) |
| 340 | return {}; |
| 341 | |
| 342 | auto ret = res.server->signatureHelp( |
| 343 | res.loc.uri, res.loc.pos, [this]( const PluginIDType& id, const LSPSignatureHelp& data ) { |
| 344 | mManager->sendResponse( this, PluginMessageType::SignatureHelp, |
| 345 | PluginMessageFormat::SignatureHelp, &data, id ); |
| 346 | } ); |
| 347 | |
| 348 | return ret; |
| 349 | } |
| 350 | |
| 351 | PluginRequestHandle LSPClientPlugin::processDocumentFormatting( const PluginMessage& msg ) { |
| 352 | if ( !msg.isBroadcast() || !msg.isJSON() ) |
nothing calls this directly
no test coverage detected