WIP - move terminal to project as pre-prep for collaboration
This commit is contained in:
parent
7dde54b052
commit
1b8763d0cf
14 changed files with 95 additions and 30 deletions
|
@ -60,6 +60,7 @@ use std::{
|
|||
atomic::{AtomicUsize, Ordering::SeqCst},
|
||||
Arc,
|
||||
},
|
||||
thread::panicking,
|
||||
time::Instant,
|
||||
};
|
||||
use thiserror::Error;
|
||||
|
@ -1193,6 +1194,17 @@ impl Project {
|
|||
!self.is_local()
|
||||
}
|
||||
|
||||
pub fn create_terminal_connection(
|
||||
&mut self,
|
||||
cx: &mut ModelContext<Self>,
|
||||
) -> Result<ModelHandle<TerminalConnection>> {
|
||||
if self.is_remote() {
|
||||
return Err(anyhow!(
|
||||
"creating terminals as a guest is not supported yet"
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
pub fn create_buffer(
|
||||
&mut self,
|
||||
text: &str,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue