Skip buffer registration if lsp data should be ignored (#42190)
Release Notes: - N/A
This commit is contained in:
@@ -22177,6 +22177,10 @@ impl Editor {
|
||||
}
|
||||
|
||||
fn register_buffer(&mut self, buffer_id: BufferId, cx: &mut Context<Self>) {
|
||||
if self.ignore_lsp_data() {
|
||||
return;
|
||||
}
|
||||
|
||||
if !self.registered_buffers.contains_key(&buffer_id)
|
||||
&& let Some(project) = self.project.as_ref()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user