zeta2: Collect nearby diagnostics (#38732)

Release Notes:

- N/A

Co-authored-by: Bennet <bennet@zed.dev>
This commit is contained in:
Michael Sloan
2025-09-23 12:32:17 -06:00
committed by GitHub
co-authored by Bennet
parent afaed3af62
commit 9ac511e47c
5 changed files with 135 additions and 38 deletions
+6
View File
@@ -4558,6 +4558,12 @@ impl BufferSnapshot {
})
}
/// Raw access to the diagnostic sets. Typically `diagnostic_groups` or `diagnostic_group`
/// should be used instead.
pub fn diagnostic_sets(&self) -> &SmallVec<[(LanguageServerId, DiagnosticSet); 2]> {
&self.diagnostics
}
/// Returns all the diagnostic groups associated with the given
/// language server ID. If no language server ID is provided,
/// all diagnostics groups are returned.