MCPcopy Create free account
hub / github.com/Moosync/Moosync / get_extensions

Method get_extensions

src-tauri/extensions/src/ext_runner.rs:500–512  ·  view source on GitHub ↗
(&self, package_name: String)

Source from the content-addressed store, hash-verified

498
499 #[tracing::instrument(level = "debug", skip(self))]
500 async fn get_extensions(&self, package_name: String) -> Vec<Extension> {
501 let mut plugins = vec![];
502 let extensions_map = self.extensions_map.lock().await;
503 if package_name.is_empty() {
504 plugins.extend(extensions_map.values().cloned());
505 } else {
506 let plugin = extensions_map.get(&package_name).cloned();
507 if let Some(plugin) = plugin {
508 plugins.push(plugin);
509 }
510 }
511 plugins
512 }
513
514 fn sanitize_response(response: &mut ExtensionCommandResponse, package_name: String) {
515 match response {

Callers 2

execute_commandMethod · 0.80
handle_runner_commandMethod · 0.80

Calls 1

getMethod · 0.80

Tested by

no test coverage detected