We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
-d ${WORKDIR}
wt.exe
1 parent cb2caa0 commit 5f56746Copy full SHA for 5f56746
src/Native/Windows.cs
@@ -155,6 +155,11 @@ public void OpenTerminal(string workdir)
155
var startInfo = new ProcessStartInfo();
156
startInfo.WorkingDirectory = workdir;
157
startInfo.FileName = OS.ShellOrTerminal;
158
+
159
+ // Directly launching `Windows Terminal` need to specify the `-d` parameter
160
+ if (OS.ShellOrTerminal.EndsWith("wt.exe", StringComparison.OrdinalIgnoreCase))
161
+ startInfo.Arguments = $"-d \"{workdir}\"";
162
163
Process.Start(startInfo);
164
}
165
0 commit comments