aboutsummaryrefslogtreecommitdiff
path: root/gopls/internal/lsp/source/completion/completion.go
diff options
context:
space:
mode:
Diffstat (limited to 'gopls/internal/lsp/source/completion/completion.go')
-rw-r--r--gopls/internal/lsp/source/completion/completion.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/gopls/internal/lsp/source/completion/completion.go b/gopls/internal/lsp/source/completion/completion.go
index e43ebc9ed..7ecd7a786 100644
--- a/gopls/internal/lsp/source/completion/completion.go
+++ b/gopls/internal/lsp/source/completion/completion.go
@@ -435,7 +435,7 @@ func Completion(ctx context.Context, snapshot source.Snapshot, fh source.FileHan
startTime := time.Now()
- pkg, pgf, err := source.PackageForFile(ctx, snapshot, fh.URI(), source.TypecheckFull, source.NarrowestPackage)
+ pkg, pgf, err := source.PackageForFile(ctx, snapshot, fh.URI(), source.NarrowestPackage)
if err != nil || pgf.File.Package == token.NoPos {
// If we can't parse this file or find position for the package
// keyword, it may be missing a package declaration. Try offering