Add support for xonsh shell (#39834)

Closes #39506

Release Notes:

- Fixed environment variable capture when login shell is
[xonsh](https://xon.sh/)

---------

Co-authored-by: Jakub Konka <kubkon@jakubkonka.com>
This commit is contained in:
Merlin04
2025-10-09 12:00:22 +02:00
committed by GitHub
co-authored by Jakub Konka
parent 1bb6752e3e
commit 37d676e2c6
4 changed files with 24 additions and 4 deletions
+2
View File
@@ -1189,6 +1189,7 @@ impl ToolchainLister for PythonToolchainProvider {
ShellKind::Nushell => "activate.nu",
ShellKind::PowerShell => "activate.ps1",
ShellKind::Cmd => "activate.bat",
ShellKind::Xonsh => "activate.xsh",
};
let path = prefix.join(BINARY_DIR).join(activate_script_name);
@@ -1215,6 +1216,7 @@ impl ToolchainLister for PythonToolchainProvider {
ShellKind::Tcsh => None,
ShellKind::Cmd => None,
ShellKind::Rc => None,
ShellKind::Xonsh => None,
})
}
_ => {}