[PT Run] VirtualDesktopHelper & WindowWalker improvements (#16325)

* Import vdh from poc

* last changes

* push changes

* small change

* add error handling to vdh

* last changes

* make spellchecker happy

* last changes

* last changes

* spell check

* fix settings defaults

* Improve WindowWalkerSettings class

* add comment

* New settings and improvements

* new features

* subtitle and tool tip

* spell fixes

* small fixes

* fixes

* Explorer info

* spell fixes

* fixes and CloseWindow feature

* last changes

* first part of implementing KillProcess

* killProcess Part 2 & Fixes

* text fix and installer

* update access modifiers

* some fixes

* update dev docs

* fix dev docs

* dev doc change

* dev docs: add missed infos

* dev docs: add link

* Update src/modules/launcher/Plugins/Microsoft.Plugin.WindowWalker/Components/WindowWalkerSettings.cs

* fix build

* resolve feedback

* fix settings

* add tests
This commit is contained in:
Heiko
2022-03-07 12:45:29 +01:00
committed by GitHub
parent 27611593bd
commit e8363a3be1
33 changed files with 1764 additions and 103 deletions

View File

@@ -13,7 +13,7 @@ namespace Microsoft.Plugin.WindowWalker.Components
/// <summary>
/// Class housing fuzzy matching methods
/// </summary>
public static class FuzzyMatching
internal static class FuzzyMatching
{
/// <summary>
/// Finds the best match (the one with the most
@@ -25,7 +25,7 @@ namespace Microsoft.Plugin.WindowWalker.Components
/// <param name="searchText">the text to search for</param>
/// <returns>returns the index location of each of the letters of the matches</returns>
[System.Diagnostics.CodeAnalysis.SuppressMessage("Performance", "CA1814:Prefer jagged arrays over multidimensional", Justification = "matches does not waste space with the current implementation, however this could probably be optimized to store the indices of matches instead of boolean values. Currently there are no unit tests for this, but we could refactor if memory/perf becomes an issue. ")]
public static List<int> FindBestFuzzyMatch(string text, string searchText)
internal static List<int> FindBestFuzzyMatch(string text, string searchText)
{
if (searchText == null)
{
@@ -86,7 +86,7 @@ namespace Microsoft.Plugin.WindowWalker.Components
/// one the search string and each cell marked as an intersection between the two</param>
/// <returns>a list of the possible combinations that match the search text</returns>
[System.Diagnostics.CodeAnalysis.SuppressMessage("Performance", "CA1814:Prefer jagged arrays over multidimensional", Justification = "matches does not waste space with the current implementation, however this could probably be optimized to store the indices of matches instead of boolean values. Currently there are no unit tests for this, but we could refactor if memory/perf becomes an issue. ")]
public static List<List<int>> GetAllMatchIndexes(bool[,] matches)
internal static List<List<int>> GetAllMatchIndexes(bool[,] matches)
{
if (matches == null)
{
@@ -127,7 +127,7 @@ namespace Microsoft.Plugin.WindowWalker.Components
/// </summary>
/// <param name="matches">the index of the matches</param>
/// <returns>an integer representing the score</returns>
public static int CalculateScoreForMatches(List<int> matches)
internal static int CalculateScoreForMatches(List<int> matches)
{
if (matches == null)
{