diff --git a/internal/lsp/cache/view.go b/internal/lsp/cache/view.go index 436ae3a535..0104799ee7 100644 --- a/internal/lsp/cache/view.go +++ b/internal/lsp/cache/view.go @@ -109,6 +109,7 @@ func (v *view) Config(ctx context.Context) *packages.Config { // TODO: Should we cache the config and/or overlay somewhere? return &packages.Config{ Dir: v.folder.Filename(), + Context: ctx, Env: v.options.Env, BuildFlags: v.options.BuildFlags, Mode: packages.NeedName |