From f303d44ce6af389829b7fbb386b6dbf10ba08b4d Mon Sep 17 00:00:00 2001 From: Hariom Verma Date: Sat, 20 Jan 2024 19:52:07 +0530 Subject: [PATCH] Update cache on DidSave --- internal/lsp/general.go | 1 + 1 file changed, 1 insertion(+) 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) }