(
&mut self,
channel: ChannelId,
session: &mut Session,
)
| 415 | } |
| 416 | |
| 417 | async fn shell_request( |
| 418 | &mut self, |
| 419 | channel: ChannelId, |
| 420 | session: &mut Session, |
| 421 | ) -> Result<(), Self::Error> { |
| 422 | session.channel_success(channel)?; |
| 423 | // Only allocate a PTY when the client explicitly requested one via |
| 424 | // pty_request. VS Code Remote-SSH sends shell_request *without* a |
| 425 | // preceding pty_request and expects pipe-based I/O with clean LF line |
| 426 | // endings. Forcing a PTY here caused CRLF translation which made |
| 427 | // VS Code misdetect the platform as Windows (and then try to run |
| 428 | // `powershell`). |
| 429 | self.start_shell(channel, session.handle(), None)?; |
| 430 | Ok(()) |
| 431 | } |
| 432 | |
| 433 | async fn exec_request( |
| 434 | &mut self, |
nothing calls this directly
no test coverage detected