Deserialize buffer's diagnostics
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
parent
2c57703ad6
commit
1995bd89a6
3 changed files with 9 additions and 3 deletions
|
@ -1391,7 +1391,7 @@ impl RemoteWorktree {
|
|||
let remote_buffer = response.buffer.ok_or_else(|| anyhow!("empty buffer"))?;
|
||||
let buffer_id = remote_buffer.id as usize;
|
||||
let buffer = cx.add_model(|cx| {
|
||||
Buffer::from_proto(replica_id, remote_buffer, Some(Box::new(file)))
|
||||
Buffer::from_proto(replica_id, remote_buffer, Some(Box::new(file)), cx)
|
||||
.unwrap()
|
||||
.with_language(language, None, cx)
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue