REPL: Refactor output (#16927)

Shuffle `outputs.rs` into individual `outputs/*.rs` files and start
documenting them more.

Release Notes:

- N/A
This commit is contained in:
Kyle Kelley 2024-08-26 18:03:06 -07:00 committed by GitHub
parent bea6786f14
commit 26d943287b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 533 additions and 443 deletions

View file

@ -1,9 +1,9 @@
use crate::components::KernelListItem;
use crate::KernelStatus;
use crate::{
kernels::{Kernel, KernelSpecification, RunningKernel},
outputs::{ExecutionStatus, ExecutionView},
};
use crate::{stdio, KernelStatus};
use client::telemetry::Telemetry;
use collections::{HashMap, HashSet};
use editor::{
@ -115,7 +115,7 @@ impl EditorBlock {
) -> RenderBlock {
let render = move |cx: &mut BlockContext| {
let execution_view = execution_view.clone();
let text_style = stdio::text_style(cx);
let text_style = crate::outputs::plain::text_style(cx);
let gutter = cx.gutter_dimensions;