Avoid language servers fighting over diagnostics summaries

Previously each server would stomp all over the existing results

Co-Authored-By: Max Brunsfeld <max@zed.dev>
This commit is contained in:
Julia
2023-04-20 08:58:41 -07:00
committed by Max Brunsfeld
co-authored by Max Brunsfeld
parent 9e2949e7ba
commit c5f86bc6af
6 changed files with 123 additions and 41 deletions
+4 -2
View File
@@ -3477,6 +3477,7 @@ async fn test_collaborating_with_diagnostics(
worktree_id,
path: Arc::from(Path::new("a.rs")),
},
0,
DiagnosticSummary {
error_count: 1,
warning_count: 0,
@@ -3512,6 +3513,7 @@ async fn test_collaborating_with_diagnostics(
worktree_id,
path: Arc::from(Path::new("a.rs")),
},
0,
DiagnosticSummary {
error_count: 1,
warning_count: 0,
@@ -3552,10 +3554,10 @@ async fn test_collaborating_with_diagnostics(
worktree_id,
path: Arc::from(Path::new("a.rs")),
},
0,
DiagnosticSummary {
error_count: 1,
warning_count: 1,
..Default::default()
},
)]
);
@@ -3568,10 +3570,10 @@ async fn test_collaborating_with_diagnostics(
worktree_id,
path: Arc::from(Path::new("a.rs")),
},
0,
DiagnosticSummary {
error_count: 1,
warning_count: 1,
..Default::default()
},
)]
);