internal/agent/tools/diagnostics.go 🔗
@@ -81,11 +81,9 @@ func waitForLSPDiagnostics(
if !client.HandlesFile(filepath) {
continue
}
- wg.Add(1)
- go func() {
- defer wg.Done()
+ wg.Go(func() {
client.WaitForDiagnostics(waitCtx, timeout)
- }()
+ })
}
wg.Wait()
}