project: Fix terminal activation scripts failing on Windows for new shells (#37986)
Tasks are still disabled as there seem to be more issues with it Release Notes: - N/A
This commit is contained in:
@@ -531,10 +531,14 @@ impl TerminalBuilder {
|
||||
},
|
||||
};
|
||||
|
||||
if cfg!(not(target_os = "windows")) && !activation_script.is_empty() && no_task {
|
||||
if !activation_script.is_empty() && no_task {
|
||||
for activation_script in activation_script {
|
||||
terminal.input(activation_script.into_bytes());
|
||||
terminal.write_to_pty(b"\n");
|
||||
terminal.write_to_pty(if cfg!(windows) {
|
||||
&b"\r\n"[..]
|
||||
} else {
|
||||
&b"\n"[..]
|
||||
});
|
||||
}
|
||||
terminal.clear();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user