aboutsummaryrefslogtreecommitdiff
path: root/internal/lsp/cache/view.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/lsp/cache/view.go')
-rw-r--r--internal/lsp/cache/view.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/internal/lsp/cache/view.go b/internal/lsp/cache/view.go
index b23ed614f..9d1ee5581 100644
--- a/internal/lsp/cache/view.go
+++ b/internal/lsp/cache/view.go
@@ -710,8 +710,9 @@ func (s *snapshot) loadWorkspace(ctx context.Context, firstAttempt bool) {
scopes = append(scopes, viewLoadScope("LOAD_VIEW"))
}
- // If we're loading anything, ensure we also load builtin.
- // TODO(rstambler): explain the rationale for this.
+ // If we're loading anything, ensure we also load builtin,
+ // since it provides fake definitions (and documentation)
+ // for types like int that are used everywhere.
if len(scopes) > 0 {
scopes = append(scopes, PackagePath("builtin"))
}