Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 0 additions & 22 deletions Flow.Launcher/ViewModel/MainViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1150,9 +1150,6 @@ private void QueryHistory()

private async Task QueryResultsAsync(bool searchDelay, bool isReQuery = false, bool reSelect = true)
{
// TODO: Remove debug codes.
System.Diagnostics.Debug.WriteLine("!!!QueryResults");

_updateSource?.Cancel();

var query = ConstructQuery(QueryText, Settings.CustomShortcuts, Settings.BuiltinShortcuts);
Expand Down Expand Up @@ -1233,17 +1230,6 @@ private async Task QueryResultsAsync(bool searchDelay, bool isReQuery = false, b
true => Task.CompletedTask
}).ToArray();

// TODO: Remove debug codes.
System.Diagnostics.Debug.Write($"!!!Querying {query.RawQuery}: search delay {searchDelay}");
foreach (var plugin in plugins)
{
if (!plugin.Metadata.Disabled)
{
System.Diagnostics.Debug.Write($"{plugin.Metadata.Name}, ");
}
}
System.Diagnostics.Debug.Write("\n");

try
{
// Check the code, WhenAll will translate all type of IEnumerable or Collection to Array, so make an array at first
Expand Down Expand Up @@ -1281,14 +1267,8 @@ async Task QueryTaskAsync(PluginPair plugin, CancellationToken token)
_ => 150
};

// TODO: Remove debug codes.
System.Diagnostics.Debug.WriteLine($"!!!{plugin.Metadata.Name} Waiting {searchDelayTime} ms");

await Task.Delay(searchDelayTime, token);

// TODO: Remove debug codes.
System.Diagnostics.Debug.WriteLine($"!!!{plugin.Metadata.Name} Waited {searchDelayTime} ms");

if (token.IsCancellationRequested)
return;
}
Expand All @@ -1297,8 +1277,6 @@ async Task QueryTaskAsync(PluginPair plugin, CancellationToken token)
// Task.Yield will force it to run in ThreadPool
await Task.Yield();

// TODO: Remove debug codes.
System.Diagnostics.Debug.WriteLine($"!!!{query.RawQuery} Querying {plugin.Metadata.Name}");
IReadOnlyList<Result> results =
await PluginManager.QueryForPluginAsync(plugin, query, token);

Expand Down
Loading