mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-13 05:42:59 +00:00
SSH Remoting: Fix diagnostic summary syncing (#19923)
Co-Authored-By: Mikayla <mikayla@zed.dev> Release Notes: - SSH Remoting: Fix diagnostics summary over collab Co-authored-by: Mikayla <mikayla@zed.dev>
This commit is contained in:
parent
9818835c9d
commit
d310a1269f
1 changed files with 14 additions and 1 deletions
|
@ -4044,6 +4044,20 @@ impl LspStore {
|
|||
.or_default()
|
||||
.insert(server_id, summary);
|
||||
}
|
||||
if let Some((downstream_client, project_id)) = &this.downstream_client {
|
||||
downstream_client
|
||||
.send(proto::UpdateDiagnosticSummary {
|
||||
project_id: *project_id,
|
||||
worktree_id: worktree_id.to_proto(),
|
||||
summary: Some(proto::DiagnosticSummary {
|
||||
path: project_path.path.to_string_lossy().to_string(),
|
||||
language_server_id: server_id.0 as u64,
|
||||
error_count: summary.error_count as u32,
|
||||
warning_count: summary.warning_count as u32,
|
||||
}),
|
||||
})
|
||||
.log_err();
|
||||
}
|
||||
cx.emit(LspStoreEvent::DiagnosticsUpdated {
|
||||
language_server_id: LanguageServerId(message.language_server_id as usize),
|
||||
path: project_path,
|
||||
|
@ -5915,7 +5929,6 @@ impl LspStore {
|
|||
let adapter = adapter.clone();
|
||||
if let Some(this) = this.upgrade() {
|
||||
adapter.process_diagnostics(&mut params);
|
||||
// Everything else has to be on the server, Can we make it on the client?
|
||||
this.update(&mut cx, |this, cx| {
|
||||
this.update_diagnostics(
|
||||
server_id,
|
||||
|
|
Loading…
Reference in a new issue