Revert "Avoid endless loop of the diagnostic updates (#21209)" (#21764)

This reverts commit 9999c31859.

Release Notes:

- Fixes diagnostics not updating in some circumstances
This commit is contained in:
Conrad Irwin 2024-12-09 14:15:23 -07:00 committed by GitHub
parent ef45eca88e
commit 6538227f07
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 13 additions and 43 deletions

View file

@ -2950,21 +2950,6 @@ impl LspStore {
})
}
pub fn diagnostics_for_buffer(
&self,
path: &ProjectPath,
) -> Option<
&[(
LanguageServerId,
Vec<DiagnosticEntry<Unclipped<PointUtf16>>>,
)],
> {
self.diagnostics
.get(&path.worktree_id)?
.get(&path.path)
.map(|diagnostics| diagnostics.as_slice())
}
pub fn started_language_servers(&self) -> Vec<(WorktreeId, LanguageServerName)> {
self.language_server_ids.keys().cloned().collect()
}