Skip to content

Commit

Permalink
[PTRun][Terminal] additional logging (#17570)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidegiacometti authored and jaimecbernardo committed Apr 7, 2022
1 parent 75e966c commit bd5af79
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
using System.Linq;
using System.Security.Principal;
using Windows.Management.Deployment;
using Wox.Plugin.Logger;

namespace Microsoft.PowerToys.Run.Plugin.WindowsTerminal.Helpers
{
Expand Down Expand Up @@ -35,10 +36,16 @@ public IEnumerable<TerminalProfile> GetProfiles()
{
var profiles = new List<TerminalProfile>();

if (!Terminals.Any())
{
Log.Warn($"No Windows Terminal packages installed", typeof(TerminalQuery));
}

foreach (var terminal in Terminals)
{
if (!File.Exists(terminal.SettingsPath))
{
Log.Warn($"Failed to find settings file {terminal.SettingsPath}", typeof(TerminalQuery));
continue;
}

Expand Down

0 comments on commit bd5af79

Please sign in to comment.