WIP - move terminal to project as pre-prep for collaboration
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user