Checkpoint, not compiling
This commit is contained in:
parent
314c26e4ec
commit
907d3e4035
3 changed files with 5 additions and 0 deletions
1
Cargo.lock
generated
1
Cargo.lock
generated
|
@ -5356,6 +5356,7 @@ dependencies = [
|
||||||
"alacritty_terminal",
|
"alacritty_terminal",
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"client",
|
"client",
|
||||||
|
"context_menu",
|
||||||
"dirs 4.0.0",
|
"dirs 4.0.0",
|
||||||
"editor",
|
"editor",
|
||||||
"futures",
|
"futures",
|
||||||
|
|
|
@ -16,6 +16,7 @@ theme = { path = "../theme" }
|
||||||
settings = { path = "../settings" }
|
settings = { path = "../settings" }
|
||||||
workspace = { path = "../workspace" }
|
workspace = { path = "../workspace" }
|
||||||
project = { path = "../project" }
|
project = { path = "../project" }
|
||||||
|
context_menu = { path = "../context_menu" }
|
||||||
smallvec = { version = "1.6", features = ["union"] }
|
smallvec = { version = "1.6", features = ["union"] }
|
||||||
smol = "1.2.5"
|
smol = "1.2.5"
|
||||||
mio-extras = "2.0.6"
|
mio-extras = "2.0.6"
|
||||||
|
|
|
@ -5,6 +5,7 @@ use gpui::{
|
||||||
actions, elements::*, AnyViewHandle, AppContext, Entity, ModelHandle, View, ViewContext,
|
actions, elements::*, AnyViewHandle, AppContext, Entity, ModelHandle, View, ViewContext,
|
||||||
ViewHandle,
|
ViewHandle,
|
||||||
};
|
};
|
||||||
|
use theme::ContextMenu;
|
||||||
use workspace::{Item, Workspace};
|
use workspace::{Item, Workspace};
|
||||||
|
|
||||||
use crate::TerminalSize;
|
use crate::TerminalSize;
|
||||||
|
@ -39,6 +40,7 @@ pub struct TerminalView {
|
||||||
modal: bool,
|
modal: bool,
|
||||||
pub content: TerminalContent,
|
pub content: TerminalContent,
|
||||||
associated_directory: Option<PathBuf>,
|
associated_directory: Option<PathBuf>,
|
||||||
|
context_menu: ViewHandle<ContextMenu>,
|
||||||
}
|
}
|
||||||
|
|
||||||
pub struct ErrorView {
|
pub struct ErrorView {
|
||||||
|
@ -111,6 +113,7 @@ impl TerminalView {
|
||||||
modal,
|
modal,
|
||||||
content,
|
content,
|
||||||
associated_directory: working_directory,
|
associated_directory: working_directory,
|
||||||
|
context_menu: cx.add_view(|cx| ContextMenu::new(cx)),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue