Get integration tests passing
* Fix misuse of guest buffer's id as its remote id Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
parent
f1fc0bde99
commit
2712cadaf6
3 changed files with 35 additions and 53 deletions
|
@ -739,13 +739,11 @@ impl LocalWorktree {
|
|||
})
|
||||
}
|
||||
|
||||
pub fn share(&mut self, cx: &mut ModelContext<Worktree>) -> Task<anyhow::Result<()>> {
|
||||
let project_id = if let Registration::Done { project_id } = self.registration {
|
||||
project_id
|
||||
} else {
|
||||
return Task::ready(Err(anyhow!("cannot share worktree before registering it")));
|
||||
};
|
||||
|
||||
pub fn share(
|
||||
&mut self,
|
||||
project_id: u64,
|
||||
cx: &mut ModelContext<Worktree>,
|
||||
) -> Task<anyhow::Result<()>> {
|
||||
if self.share.is_some() {
|
||||
return Task::ready(Ok(()));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue