Skip to content

Commit

Permalink
Update cache on DidSave
Browse files Browse the repository at this point in the history
  • Loading branch information
harry-hov committed Jan 20, 2024
1 parent 52d0ba1 commit f303d44
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/lsp/general.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit f303d44

Please sign in to comment.