repl: Iterate on design of REPL sessions view (#14987)
This PR iterates on the design of the REPL sessions view. We now use the same component for both available kernels and running ones to provide some consistency between the two modes: <img width="1208" alt="Screenshot 2024-07-22 at 6 49 08 PM" src="https://github.com/user-attachments/assets/8b5c3600-e438-49fa-8484-cefabf4b44f1"> <img width="1208" alt="Screenshot 2024-07-22 at 6 49 14 PM" src="https://github.com/user-attachments/assets/5125e9b3-6465-4d1e-9036-e6ca270dedcb"> Release Notes: - N/A
This commit is contained in:
parent
01392c1329
commit
fe1f55cbfd
6 changed files with 192 additions and 121 deletions
|
@ -1,9 +1,4 @@
|
|||
use async_dispatcher::{set_dispatcher, Dispatcher, Runnable};
|
||||
use gpui::{AppContext, PlatformDispatcher};
|
||||
use project::Fs;
|
||||
use settings::Settings as _;
|
||||
use std::{sync::Arc, time::Duration};
|
||||
|
||||
mod components;
|
||||
mod jupyter_settings;
|
||||
mod kernels;
|
||||
mod outputs;
|
||||
|
@ -13,14 +8,22 @@ mod repl_store;
|
|||
mod session;
|
||||
mod stdio;
|
||||
|
||||
pub use jupyter_settings::JupyterSettings;
|
||||
pub use kernels::{Kernel, KernelSpecification, KernelStatus};
|
||||
pub use repl_editor::*;
|
||||
pub use repl_sessions_ui::{ClearOutputs, Interrupt, ReplSessionsPage, Run, Sessions, Shutdown};
|
||||
pub use runtimelib::ExecutionState;
|
||||
pub use session::Session;
|
||||
use std::{sync::Arc, time::Duration};
|
||||
|
||||
use async_dispatcher::{set_dispatcher, Dispatcher, Runnable};
|
||||
use gpui::{AppContext, PlatformDispatcher};
|
||||
use project::Fs;
|
||||
pub use runtimelib::ExecutionState;
|
||||
use settings::Settings as _;
|
||||
|
||||
pub use crate::jupyter_settings::JupyterSettings;
|
||||
pub use crate::kernels::{Kernel, KernelSpecification, KernelStatus};
|
||||
pub use crate::repl_editor::*;
|
||||
pub use crate::repl_sessions_ui::{
|
||||
ClearOutputs, Interrupt, ReplSessionsPage, Run, Sessions, Shutdown,
|
||||
};
|
||||
use crate::repl_store::ReplStore;
|
||||
pub use crate::session::Session;
|
||||
|
||||
fn zed_dispatcher(cx: &mut AppContext) -> impl Dispatcher {
|
||||
struct ZedDispatcher {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue