@@ -7,6 +7,7 @@ import (
12 "charm.land/fantasy"
13 "charm.land/fantasy"
@@ -72,12 +73,21 @@ func waitForLSPDiagnostics(
76+ waitCtx, cancel := context.WithTimeout(ctx, timeout)
79+ var wg sync.WaitGroup
75 for client := range manager.Clients().Seq() {
80 for client := range manager.Clients().Seq() {
76 if !client.HandlesFile(filepath) {
81 if !client.HandlesFile(filepath) {
79− client.WaitForDiagnostics(ctx, timeout)
87+ client.WaitForDiagnostics(waitCtx, timeout)
83// notifyLSPs notifies LSP servers that a file has changed and waits for
93// notifyLSPs notifies LSP servers that a file has changed and waits for