Compare commits

...

2 Commits

Author SHA1 Message Date
copilot-swe-agent[bot]
e892216a22 Handle missing ShortcutGuide manifest before population 2026-05-28 07:50:49 +00:00
copilot-swe-agent[bot]
46e96522f2 Initial plan 2026-05-28 07:45:55 +00:00

View File

@@ -8,6 +8,7 @@ using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using ManagedCommon;
using Microsoft.PowerToys.Settings.UI.Library;
using static ShortcutGuide.Helpers.ResourceLoaderInstance;
@@ -25,6 +26,12 @@ namespace ShortcutGuide.Helpers
{
string path = Path.Combine(ManifestInterpreter.PathOfManifestFiles, $"Microsoft.PowerToys.{ManifestInterpreter.Language}.yml");
if (!File.Exists(path))
{
Logger.LogWarning($"Skipping PowerToys shortcut manifest population because '{path}' was not found.");
return;
}
StringBuilder content = new(File.ReadAllText(path));
const string populateStartString = "# <Populate start>";