mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-01-18 06:29:44 +08:00
Remove PluginDebugger
This commit is contained in:
parent
9d9400f4d9
commit
1616aa87bd
@ -28,11 +28,6 @@ namespace Wox.Core.Plugin
|
||||
ParsePluginConfigs(pluginDirectory);
|
||||
}
|
||||
|
||||
if (PluginManager.DebuggerMode != null)
|
||||
{
|
||||
PluginMetadata metadata = GetPluginMetadata(PluginManager.DebuggerMode);
|
||||
if (metadata != null) pluginMetadatas.Add(metadata);
|
||||
}
|
||||
return pluginMetadatas;
|
||||
}
|
||||
|
||||
|
@ -1,5 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
@ -28,7 +27,6 @@ namespace Wox.Core.Plugin
|
||||
private static List<KeyValuePair<PluginPair, IExclusiveQuery>> exclusiveSearchPlugins;
|
||||
private static List<KeyValuePair<PluginPair, IContextMenu>> contextMenuPlugins;
|
||||
|
||||
public static String DebuggerMode { get; private set; }
|
||||
public static IPublicAPI API { get; private set; }
|
||||
|
||||
private static List<PluginPair> plugins = new List<PluginPair>();
|
||||
@ -167,11 +165,6 @@ namespace Wox.Core.Plugin
|
||||
return metadata.ActionKeyword == ActionKeywordWildcardSign;
|
||||
}
|
||||
|
||||
public static void ActivatePluginDebugger(string path)
|
||||
{
|
||||
DebuggerMode = path;
|
||||
}
|
||||
|
||||
public static bool IsInstantQuery(string 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\ICommandArg.cs" />
|
||||
<Compile Include="CommandArgs\InstallPluginCommandArg.cs" />
|
||||
<Compile Include="CommandArgs\PluginDebuggerCommandArg.cs" />
|
||||
<Compile Include="CommandArgs\QueryCommandArg.cs" />
|
||||
<Compile Include="CommandArgs\ReloadPluginCommandArg.cs" />
|
||||
<Compile Include="Helper\DataWebRequestFactory.cs" />
|
||||
|
Loading…
Reference in New Issue
Block a user