diff --git a/internal/lsp/general.go b/internal/lsp/general.go index 75426af..a39a6a1 100644 --- a/internal/lsp/general.go +++ b/internal/lsp/general.go @@ -75,6 +75,7 @@ func (s *server) DidSave(ctx context.Context, reply jsonrpc2.Replier, req jsonrp } slog.Info("save " + string(uri.Filename())) + s.UpdateCache(filepath.Dir(string(params.TextDocument.URI.Filename()))) notification := s.publishDiagnostics(ctx, s.conn, file) return reply(ctx, notification, nil) }