SSLSocket try to find CA bundle in SSL_CERT_DIR env path.

ecode:
Replaced python linter with ruff.
ProjectDirectoryTree now provides PluginMessageType::FindAndOpenClosestURI.
This commit is contained in:
Martín Lucas Golini
2022-11-18 02:46:46 -03:00
parent dd9ff2ca77
commit 1875886c5f
13 changed files with 149 additions and 24 deletions

View File

@@ -162,10 +162,11 @@ void PluginManager::sendBroadcast( UICodeEditorPlugin* pluginWho, PluginMessageT
}
void PluginManager::subscribeMessages(
UICodeEditorPlugin* plugin, std::function<PluginRequestHandle( const PluginMessage& )> cb ) {
const std::string& uniqueComponentId,
std::function<PluginRequestHandle( const PluginMessage& )> cb ) {
{
Lock l( mSubscribedPluginsMutex );
mSubscribedPlugins[plugin->getId()] = cb;
mSubscribedPlugins[uniqueComponentId] = cb;
}
if ( !mWorkspaceFolder.empty() ) {
json data{ { "folder", mWorkspaceFolder } };
@@ -173,13 +174,22 @@ void PluginManager::subscribeMessages(
}
}
void PluginManager::unsubscribeMessages( UICodeEditorPlugin* plugin ) {
void PluginManager::unsubscribeMessages( const std::string& uniqueComponentId ) {
if ( !mClosing ) {
Lock l( mSubscribedPluginsMutex );
mSubscribedPlugins.erase( plugin->getId() );
mSubscribedPlugins.erase( uniqueComponentId );
}
}
void PluginManager::subscribeMessages(
UICodeEditorPlugin* plugin, std::function<PluginRequestHandle( const PluginMessage& )> cb ) {
subscribeMessages( plugin->getId(), cb );
}
void PluginManager::unsubscribeMessages( UICodeEditorPlugin* plugin ) {
unsubscribeMessages( plugin->getId() );
}
void PluginManager::setSplitter( UICodeEditorSplitter* splitter ) {
mSplitter = splitter;
}