Add a comment about the use of shell_kind in terminal.rs (#40114)

Release Notes:

- N/A

Co-authored-by: Jakub Konka <kubkon@jakubkonka.com>
This commit is contained in:
Cole Miller
2025-10-13 15:36:40 +00:00
committed by GitHub
co-authored by Jakub Konka
parent 23fe74ebc5
commit 9edf1f8f04
+5
View File
@@ -495,6 +495,11 @@ impl TerminalBuilder {
.unwrap_or(params.program.clone())
});
// Note: when remoting, this shell_kind will scrutinize `ssh` or
// `wsl.exe` as a shell and fall back to posix or powershell based on
// the compilation target. This is fine right now due to the restricted
// way we use the return value, but would become incorrect if we
// supported remoting into windows.
let shell_kind = shell.shell_kind(cfg!(windows));
let pty_options = {