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

Method tryRequestCapabilities

src/tools/ecode/plugins/formatter/formatterplugin.cpp:606–616  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

604}
605
606bool FormatterPlugin::tryRequestCapabilities( const std::shared_ptr<TextDocument>& doc ) {
607 const auto& language = doc->getSyntaxDefinition().getLSPName();
608 auto it = mCapabilities.find( language );
609 if ( it != mCapabilities.end() )
610 return true;
611 json data;
612 data["language"] = language;
613 mManager->sendRequest( this, PluginMessageType::LanguageServerCapabilities,
614 PluginMessageFormat::JSON, &data );
615 return false;
616}
617
618PluginRequestHandle FormatterPlugin::processMessage( const PluginMessage& msg ) {
619 if ( msg.type == PluginMessageType::FileSystemListenerReady ) {

Callers

nothing calls this directly

Calls 3

findMethod · 0.45
endMethod · 0.45
sendRequestMethod · 0.45

Tested by

no test coverage detected