Document main workspace structs (#9772)
This commit is contained in:
parent
f83884518a
commit
e3894a4e1e
6 changed files with 31 additions and 0 deletions
|
@ -141,6 +141,11 @@ pub enum OpenedBufferEvent {
|
|||
Err(BufferId, Arc<anyhow::Error>),
|
||||
}
|
||||
|
||||
/// Semantics-aware entity that is relevant to one or more [`Worktree`] with the files.
|
||||
/// `Project` is responsible for tasks, LSP and collab queries, synchronizing worktree states accordingly.
|
||||
/// Maps [`Worktree`] entries with its own logic using [`ProjectEntryId`] and [`ProjectPath`] structs.
|
||||
///
|
||||
/// Can be either local (for the project opened on the same host) or remote.(for collab projects, browsed by multiple remote users).
|
||||
pub struct Project {
|
||||
worktrees: Vec<WorktreeHandle>,
|
||||
active_entry: Option<ProjectEntryId>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue