| 314 | } |
| 315 | |
| 316 | PluginRequestHandle LSPClientPlugin::processCodeCompletionRequest( const PluginMessage& msg ) { |
| 317 | if ( !msg.isRequest() || !msg.isJSON() ) |
| 318 | return {}; |
| 319 | |
| 320 | auto res = getLSPLocationFromJSON( mClientManager, msg.asJSON() ); |
| 321 | if ( !res.server ) |
| 322 | return {}; |
| 323 | |
| 324 | auto ret = res.server->documentCompletion( |
| 325 | res.loc.uri, res.loc.pos, |
| 326 | [this]( const PluginIDType& id, const LSPCompletionList& completionList ) { |
| 327 | mManager->sendResponse( this, PluginMessageType::CodeCompletion, |
| 328 | PluginMessageFormat::CodeCompletion, &completionList, id ); |
| 329 | } ); |
| 330 | |
| 331 | return ret; |
| 332 | } |
| 333 | |
| 334 | PluginRequestHandle LSPClientPlugin::processSignatureHelpRequest( const PluginMessage& msg ) { |
| 335 | if ( !msg.isRequest() || !msg.isJSON() ) |
nothing calls this directly
no test coverage detected