Compare commits

...

2 Commits

Author SHA1 Message Date
copilot-swe-agent[bot]
f003e277cb Fix crash when opening terminal profile in new tab with quake window active
Agent-Logs-Url: https://github.com/microsoft/PowerToys/sessions/cf61eae9-f97c-405d-ae59-c0a3a09c7ae3

Co-authored-by: MuyuanMS <116717757+MuyuanMS@users.noreply.github.com>
2026-04-29 10:20:15 +00:00
copilot-swe-agent[bot]
2a293eccd1 Initial plan 2026-04-29 08:50:42 +00:00
3 changed files with 3 additions and 3 deletions

View File

@@ -31,7 +31,7 @@ public static class TerminalHelper
}
else if (openNewTab)
{
argsPrefix = "--window 0 nt";
argsPrefix = "nt";
}
return $"{argsPrefix} --profile \"{profileName}\"";

View File

@@ -18,7 +18,7 @@ namespace Microsoft.Plugin.WindowsTerminal.UnitTests
[DataTestMethod]
[DataRow("Windows PowerShell", true, true, "--window _quake --profile \"Windows PowerShell\"")]
[DataRow("Windows PowerShell", false, true, "--window _quake --profile \"Windows PowerShell\"")]
[DataRow("Windows PowerShell", true, false, "--window 0 nt --profile \"Windows PowerShell\"")]
[DataRow("Windows PowerShell", true, false, "nt --profile \"Windows PowerShell\"")]
[DataRow("Windows PowerShell", false, false, " --profile \"Windows PowerShell\"")]
public void ArgumentsTest(string profile, bool openNewTab, bool openQuake, string expectedArguments)
{

View File

@@ -28,7 +28,7 @@ namespace Microsoft.PowerToys.Run.Plugin.WindowsTerminal.Helpers
}
else if (openNewTab)
{
argsPrefix = "--window 0 nt";
argsPrefix = "nt";
}
return $"{argsPrefix} --profile \"{profileName}\"";