Compare commits

...

3 Commits

Author SHA1 Message Date
Jiří Polášek
c7aa5c3ce2 Restore using directive Microsoft.CommandPalette.Extensions 2026-01-13 14:55:34 +01:00
Michael Jolley
79fccddf1f Fixing formatting 2026-01-12 19:48:59 -06:00
Michael Jolley
0e4d7d1b47 Devaluing fallback ranks in global sort 2026-01-12 14:06:28 -06:00

View File

@@ -547,6 +547,15 @@ public partial class MainListPage : DynamicListPage,
// above "git" from "whatever"
max = max + extensionTitleMatch;
// Apply a penalty to fallback items so they rank below direct matches.
// Fallbacks that dynamically match queries (like RDP connections) should
// appear after apps and direct command matches.
if (isFallback && max > 1)
{
// Reduce fallback scores by 50% to prioritize direct matches
max = max * 0.5;
}
var matchSomething = max
+ (isAliasMatch ? 9001 : (isAliasSubstringMatch ? 1 : 0));