You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
internal/lsp/cache: support loading multiple orphaned files
go/packages returns at most one command-line-arguments package per
query. Previously, this led to N^2 loading of orphaned files. CL 480197
fixed this by marking all queried files as unloadable after a load
completes. However, as a result gopls would fail to load multiple
orphaned files.
Fix this properly by calling Load once for each orphaned file.
Fixesgolang/go#59318
Change-Id: Ibfb3742fcb70ea3976d8b1b5b384fe6b97350cf4
Reviewed-on: https://go-review.googlesource.com/c/tools/+/494401
Reviewed-by: Alan Donovan <[email protected]>
gopls-CI: kokoro <[email protected]>
Run-TryBot: Robert Findley <[email protected]>
TryBot-Result: Gopher Robot <[email protected]>
0 commit comments