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:
committed by
Max Brunsfeld
co-authored by
Max Brunsfeld
parent
9e2949e7ba
commit
c5f86bc6af
@@ -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()
|
||||
},
|
||||
)]
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user