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()
|
||||
{
|
||||
|
||||
@@ -266,7 +266,7 @@ impl Editor {
|
||||
reason: InlayHintRefreshReason,
|
||||
cx: &mut Context<Self>,
|
||||
) {
|
||||
if !self.mode.is_full() || self.inlay_hints.is_none() {
|
||||
if self.ignore_lsp_data() || self.inlay_hints.is_none() {
|
||||
return;
|
||||
}
|
||||
let Some(semantics_provider) = self.semantics_provider() else {
|
||||
|
||||
Reference in New Issue
Block a user