Added tests template
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0-windows</TargetFramework>
|
||||
<TargetFramework>net9.0-windows</TargetFramework>
|
||||
<Platforms>x64;ARM64</Platforms>
|
||||
<PlatformTarget>$(Platform)</PlatformTarget>
|
||||
<UseWPF>true</UseWPF>
|
||||
|
||||
@@ -7,7 +7,7 @@ using Wox.Plugin.Logger;
|
||||
|
||||
namespace Community.PowerToys.Run.Plugin.YandexGPT;
|
||||
|
||||
public class Main : IPlugin, IContextMenu, ISettingProvider, IDisposable
|
||||
public class Main : IDelayedExecutionPlugin, IContextMenu, ISettingProvider, IDisposable
|
||||
{
|
||||
#region Plugin Info
|
||||
public static string PluginId => "C2218AB0D86F4345B55C60F9418A811C";
|
||||
@@ -40,16 +40,21 @@ public class Main : IPlugin, IContextMenu, ISettingProvider, IDisposable
|
||||
//UpdateIconPath(Context.API.GetCurrentTheme());
|
||||
}
|
||||
|
||||
public List<Result> Query(Query query)
|
||||
public List<Result> Query(Query query, bool delayedExecution)
|
||||
{
|
||||
Log.Info("Query: " + query.Search, GetType());
|
||||
|
||||
if (query.ActionKeyword != Token)
|
||||
return [];
|
||||
|
||||
var search = query.Search;
|
||||
|
||||
return [
|
||||
new()
|
||||
{
|
||||
QueryTextDisplay = query.Search,
|
||||
IcoPath = IconPath,
|
||||
Title = $"YandexGPT: Чет такое",
|
||||
Title = $"YandexGPT: Чет такое {search}",
|
||||
SubTitle = $"Ответ: иди туда!",
|
||||
ToolTipData = new ToolTipData("Ответы", $"Тут ответ\nИ тут ответ"),
|
||||
ContextData = Token,
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"ID": "C2218AB0D86F4345B55C60F9418A811C",
|
||||
"ActionKeyword": "YandexGPT",
|
||||
"IsGlobal": false,
|
||||
"Name": "YandexGPT",
|
||||
"Name": "Yandex GPT",
|
||||
"Author": "MikhailRaw",
|
||||
"Version": "1.0.0",
|
||||
"Language": "csharp",
|
||||
|
||||
Reference in New Issue
Block a user