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

Method processCodeCompletionRequest

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

Source from the content-addressed store, hash-verified

314}
315
316PluginRequestHandle 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
334PluginRequestHandle LSPClientPlugin::processSignatureHelpRequest( const PluginMessage& msg ) {
335 if ( !msg.isRequest() || !msg.isJSON() )

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected