@@ -5,7 +5,6 @@ import (
5 "encoding/json"
5 "encoding/json"
@@ -109,8 +108,7 @@ func waitForLspDiagnostics(ctx context.Context, filePath string, lsps map[string
109 diagChan := make(chan struct{}, 1)
108 diagChan := make(chan struct{}, 1)
111 for _, client := range lsps {
110 for _, client := range lsps {
112− originalDiags := make(map[protocol.DocumentURI][]protocol.Diagnostic)
113− maps.Copy(originalDiags, client.GetDiagnostics())
111+ originalDiags := client.GetDiagnostics()
115 handler := func(params json.RawMessage) {
113 handler := func(params json.RawMessage) {
116 lsp.HandleDiagnostics(client, params)
114 lsp.HandleDiagnostics(client, params)