Skip buffer registration if lsp data should be ignored (#42190)

Release Notes:

- N/A
This commit is contained in:
Kirill Bulatov
2025-11-07 12:57:54 +00:00
committed by GitHub
parent 39fb89e031
commit 278fe91a9a
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -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()
{
+1 -1
View File
@@ -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 {