MCPcopy Create free account
hub / github.com/SpartanJ/eepp / processSignatureHelpRequest

Method processSignatureHelpRequest

src/tools/ecode/plugins/lsp/lspclientplugin.cpp:334–349  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

332}
333
334PluginRequestHandle 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
351PluginRequestHandle LSPClientPlugin::processDocumentFormatting( const PluginMessage& msg ) {
352 if ( !msg.isBroadcast() || !msg.isJSON() )

Callers

nothing calls this directly

Calls 5

getLSPLocationFromJSONFunction · 0.85
isRequestMethod · 0.80
isJSONMethod · 0.80
signatureHelpMethod · 0.80
sendResponseMethod · 0.45

Tested by

no test coverage detected