ecode: More LSP work.

This commit is contained in:
Martín Lucas Golini
2022-11-04 01:32:30 -03:00
parent 36c22d63a9
commit 14997a945c
17 changed files with 146 additions and 80 deletions

View File

@@ -112,6 +112,8 @@ void PluginManager::subscribeNotifications(
UICodeEditorPlugin* plugin,
std::function<void( Notification, const nlohmann::json& )> cb ) const {
const_cast<PluginManager*>( this )->mSubscribedPlugins[plugin->getId()] = cb;
if ( !mWorkspaceFolder.empty() )
cb( Notification::WorkspaceFolderChanged, json{ { "folder", mWorkspaceFolder } } );
}
void PluginManager::unsubscribeNotifications( UICodeEditorPlugin* plugin ) const {