mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Remove PluginDebugger
This commit is contained in:
parent
9d9400f4d9
commit
1616aa87bd
4 changed files with 1 additions and 36 deletions
|
|
@ -28,11 +28,6 @@ namespace Wox.Core.Plugin
|
||||||
ParsePluginConfigs(pluginDirectory);
|
ParsePluginConfigs(pluginDirectory);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (PluginManager.DebuggerMode != null)
|
|
||||||
{
|
|
||||||
PluginMetadata metadata = GetPluginMetadata(PluginManager.DebuggerMode);
|
|
||||||
if (metadata != null) pluginMetadatas.Add(metadata);
|
|
||||||
}
|
|
||||||
return pluginMetadatas;
|
return pluginMetadatas;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
using System;
|
using System.Collections.Generic;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
@ -28,7 +27,6 @@ namespace Wox.Core.Plugin
|
||||||
private static List<KeyValuePair<PluginPair, IExclusiveQuery>> exclusiveSearchPlugins;
|
private static List<KeyValuePair<PluginPair, IExclusiveQuery>> exclusiveSearchPlugins;
|
||||||
private static List<KeyValuePair<PluginPair, IContextMenu>> contextMenuPlugins;
|
private static List<KeyValuePair<PluginPair, IContextMenu>> contextMenuPlugins;
|
||||||
|
|
||||||
public static String DebuggerMode { get; private set; }
|
|
||||||
public static IPublicAPI API { get; private set; }
|
public static IPublicAPI API { get; private set; }
|
||||||
|
|
||||||
private static List<PluginPair> plugins = new List<PluginPair>();
|
private static List<PluginPair> plugins = new List<PluginPair>();
|
||||||
|
|
@ -167,11 +165,6 @@ namespace Wox.Core.Plugin
|
||||||
return metadata.ActionKeyword == ActionKeywordWildcardSign;
|
return metadata.ActionKeyword == ActionKeywordWildcardSign;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void ActivatePluginDebugger(string path)
|
|
||||||
{
|
|
||||||
DebuggerMode = path;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static bool IsInstantQuery(string query)
|
public static bool IsInstantQuery(string query)
|
||||||
{
|
{
|
||||||
return LoadInstantSearches().Any(o => o.Value.IsInstantQuery(query));
|
return LoadInstantSearches().Any(o => o.Value.IsInstantQuery(query));
|
||||||
|
|
|
||||||
|
|
@ -1,22 +0,0 @@
|
||||||
using System.Collections.Generic;
|
|
||||||
using Wox.Core.Plugin;
|
|
||||||
|
|
||||||
namespace Wox.CommandArgs
|
|
||||||
{
|
|
||||||
public class PluginDebuggerCommandArg : ICommandArg
|
|
||||||
{
|
|
||||||
public string Command
|
|
||||||
{
|
|
||||||
get { return "plugindebugger"; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Execute(IList<string> args)
|
|
||||||
{
|
|
||||||
if (args.Count > 0)
|
|
||||||
{
|
|
||||||
var pluginFolderPath = args[0];
|
|
||||||
PluginManager.ActivatePluginDebugger(pluginFolderPath);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -134,7 +134,6 @@
|
||||||
<Compile Include="CommandArgs\HideStartCommandArg.cs" />
|
<Compile Include="CommandArgs\HideStartCommandArg.cs" />
|
||||||
<Compile Include="CommandArgs\ICommandArg.cs" />
|
<Compile Include="CommandArgs\ICommandArg.cs" />
|
||||||
<Compile Include="CommandArgs\InstallPluginCommandArg.cs" />
|
<Compile Include="CommandArgs\InstallPluginCommandArg.cs" />
|
||||||
<Compile Include="CommandArgs\PluginDebuggerCommandArg.cs" />
|
|
||||||
<Compile Include="CommandArgs\QueryCommandArg.cs" />
|
<Compile Include="CommandArgs\QueryCommandArg.cs" />
|
||||||
<Compile Include="CommandArgs\ReloadPluginCommandArg.cs" />
|
<Compile Include="CommandArgs\ReloadPluginCommandArg.cs" />
|
||||||
<Compile Include="Helper\DataWebRequestFactory.cs" />
|
<Compile Include="Helper\DataWebRequestFactory.cs" />
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue