mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-05-30 01:56:31 +03:00
ecode: More minor improvements to the LSP plugin. Added rustfmt formatter, and added rust-analyzer LSP. Fixed plugins exit.
This commit is contained in:
@@ -108,6 +108,13 @@ void PluginManager::setWorkspaceFolder( const std::string& workspaceFolder ) {
|
||||
json{ { "folder", mWorkspaceFolder } } );
|
||||
}
|
||||
|
||||
void PluginManager::pushNotification( UICodeEditorPlugin* pluginWho, Notification notification,
|
||||
const nlohmann::json& json ) const {
|
||||
for ( const auto& plugin : mSubscribedPlugins )
|
||||
if ( pluginWho->getId() != plugin.first )
|
||||
plugin.second( notification, json );
|
||||
}
|
||||
|
||||
void PluginManager::subscribeNotifications(
|
||||
UICodeEditorPlugin* plugin,
|
||||
std::function<void( Notification, const nlohmann::json& )> cb ) const {
|
||||
|
||||
Reference in New Issue
Block a user