We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6db8b8 commit e74d7ceCopy full SHA for e74d7ce
Flow.Launcher.Core/Plugin/JsonRPCPlugin.cs
@@ -3,6 +3,7 @@
3
using System.Collections.Generic;
4
using System.Diagnostics;
5
using System.IO;
6
+using System.Linq;
7
using System.Reflection;
8
using System.Text.Json;
9
using System.Threading;
@@ -128,7 +129,8 @@ private List<Result> ParseResults(JsonRPCQueryResponseModel queryResponseModel)
128
129
130
private void ExecuteFlowLauncherAPI(string method, object[] parameters)
131
{
- MethodInfo methodInfo = PluginManager.API.GetType().GetMethod(method);
132
+ var parametersTypeArray = parameters.Select(param => param.GetType()).ToArray();
133
+ MethodInfo methodInfo = PluginManager.API.GetType().GetMethod(method, parametersTypeArray);
134
if (methodInfo != null)
135
136
try
0 commit comments