mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-05-30 01:56:31 +03:00
ecode: Implemented workspace symbol search.
This commit is contained in:
@@ -115,6 +115,23 @@ void PluginManager::setWorkspaceFolder( const std::string& workspaceFolder ) {
|
||||
sendBroadcast( PluginMessageType::WorkspaceFolderChanged, PluginMessageFormat::JSON, &data );
|
||||
}
|
||||
|
||||
PluginRequestHandle PluginManager::sendRequest( PluginMessageType type, PluginMessageFormat format,
|
||||
const void* data ) {
|
||||
if ( mClosing )
|
||||
return PluginRequestHandle::empty();
|
||||
SubscribedPlugins subscribedPlugins;
|
||||
{
|
||||
Lock l( mSubscribedPluginsMutex );
|
||||
subscribedPlugins = mSubscribedPlugins;
|
||||
}
|
||||
for ( const auto& plugin : subscribedPlugins ) {
|
||||
auto handle = plugin.second( { type, format, data } );
|
||||
if ( !handle.isEmpty() )
|
||||
return handle;
|
||||
}
|
||||
return PluginRequestHandle::empty();
|
||||
}
|
||||
|
||||
PluginRequestHandle PluginManager::sendRequest( UICodeEditorPlugin* pluginWho,
|
||||
PluginMessageType type, PluginMessageFormat format,
|
||||
const void* data ) {
|
||||
|
||||
Reference in New Issue
Block a user