Reduce amount of allocations in RustLsp label handling (#35786)
There can be a lot of completions after all Release Notes: - N/A
This commit is contained in:
parent
c397027ec2
commit
4dbd24d75f
9 changed files with 40 additions and 65 deletions
|
@ -713,7 +713,7 @@ impl Buffer {
|
|||
let mut base_text = base_text.into();
|
||||
let line_ending = LineEnding::detect(&base_text);
|
||||
LineEnding::normalize(&mut base_text);
|
||||
Self::new_normalized(replica_id, remote_id, line_ending, Rope::from(base_text))
|
||||
Self::new_normalized(replica_id, remote_id, line_ending, Rope::from(&*base_text))
|
||||
}
|
||||
|
||||
pub fn new_normalized(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue