Checkpoint, not compiling

This commit is contained in:
Mikayla Maki 2022-08-04 10:16:26 -07:00
parent 314c26e4ec
commit 907d3e4035
3 changed files with 5 additions and 0 deletions

1
Cargo.lock generated
View File

@ -5356,6 +5356,7 @@ dependencies = [
"alacritty_terminal",
"anyhow",
"client",
"context_menu",
"dirs 4.0.0",
"editor",
"futures",

View File

@ -16,6 +16,7 @@ theme = { path = "../theme" }
settings = { path = "../settings" }
workspace = { path = "../workspace" }
project = { path = "../project" }
context_menu = { path = "../context_menu" }
smallvec = { version = "1.6", features = ["union"] }
smol = "1.2.5"
mio-extras = "2.0.6"

View File

@ -5,6 +5,7 @@ use gpui::{
actions, elements::*, AnyViewHandle, AppContext, Entity, ModelHandle, View, ViewContext,
ViewHandle,
};
use theme::ContextMenu;
use workspace::{Item, Workspace};
use crate::TerminalSize;
@ -39,6 +40,7 @@ pub struct TerminalView {
modal: bool,
pub content: TerminalContent,
associated_directory: Option<PathBuf>,
context_menu: ViewHandle<ContextMenu>,
}
pub struct ErrorView {
@ -111,6 +113,7 @@ impl TerminalView {
modal,
content,
associated_directory: working_directory,
context_menu: cx.add_view(|cx| ContextMenu::new(cx)),
}
}