Clean up comments in runtimes (#13870)

This commit is contained in:
Kyle Kelley 2024-07-05 12:37:01 -07:00 committed by GitHub
parent a53b3b6b10
commit 750df6c93d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 5 deletions

View file

@ -365,13 +365,13 @@ impl ExecutionView {
// Set next input adds text to the next cell. Not required to support.
// However, this could be implemented by adding text to the buffer.
// runtimelib::Payload::SetNextInput { text, replace } => todo!(),
// runtimelib::Payload::SetNextInput { text, replace } => {},
// Not likely to be used in the context of Zed, where someone could just open the buffer themselves
// runtimelib::Payload::EditMagic { filename, line_number } => todo!(),
// runtimelib::Payload::EditMagic { filename, line_number } => {},
// Ask the user if they want to exit the kernel. Not required to support.
// runtimelib::Payload::AskExit { keepkernel } => todo!(),
// runtimelib::Payload::AskExit { keepkernel } => {},
_ => {}
}
}

View file

@ -305,7 +305,6 @@ impl Session {
fn shutdown(&mut self, cx: &mut ViewContext<Self>) {
let kernel = std::mem::replace(&mut self.kernel, Kernel::ShuttingDown);
// todo!(): emit event for the runtime panel to remove this session once in shutdown state
match kernel {
Kernel::RunningKernel(mut kernel) => {