This reverts commit 9999c31859.
Release Notes:
- Fixes diagnostics not updating in some circumstances
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user