[roll] Roll fuchsia [vscode workspace] Add gopls configuration
This CL adds settings to fuchsia.code-workspace to make gopls ignore
certain directories when searching for go.mod files. This fixes an issue
where the Go extension would fail with errors like:
Error loading packages: exhausted
Error loading workspace folders (expected 1, got 0)
failed to load view for file:///the/path/to/fuchsia: exhausted
This happens because gopls gives up after 1 million files [1]. By
default, gopls only ignores **/node_modules [2]. The most important
directory to exclude to stay under the limit is //out, but I also copied
some others from files.watcherExclude.
[1] https://github.com/golang/tools/blob/3b9d20c52192f5c16e801afcbc23756327155865/gopls/internal/lsp/cache/workspace.go#L618
[2] https://github.com/golang/tools/blob/3b9d20c52192f5c16e801afcbc23756327155865/gopls/internal/lsp/source/options.go#L121
Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/763742
Original-Revision: b1856e1526e966c4e214b5d1bb449f2eb62385a7
GitOrigin-RevId: d89d6a16f4cb4a940faf2d4fd9ed89b50a86abc1
Change-Id: Ida989a91e078f4d5f25b0133fb6c2438bab8a834
This repository contains Fuchsia's Global Integration manifest files.
All changes should be made to the internal version of this repository. Our infrastructure automatically updates this version when the internal one changes.
Currently all changes must be made by a Google employee. Non-Google employees wishing to make a change can ask for assistance via the IRC channel #fuchsia on Freenode.
First install Jiri.
Next run:
$ jiri init $ jiri import minimal https://fuchsia.googlesource.com/integration $ jiri update
Third party projects should have their own subdirectory in ./third_party.