mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 11:46:30 +02:00
Remove PluginDebugger
This commit is contained in:
@@ -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" />
|
||||||
|
|||||||
Reference in New Issue
Block a user