This reverts commit 9999c31859
.
Release Notes:
- Fixes diagnostics not updating in some circumstances
This commit is contained in:
parent
ef45eca88e
commit
6538227f07
2 changed files with 13 additions and 43 deletions
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue