mirror of https://github.com/golang/go.git
This change copies the logic from the go command's inDir function (https://cs.opensource.google/go/go/+/master:src/cmd/go/internal/search/search.go;drc=3931cc113f3f3e7d484842d6e4f53b7a78311e8e;l=570) to replace gopls's "isSubdirectory" function. This function resolves symlinks, which isSubdirectory did not previously do. The only adjustments are to flip the arguments to match the previous signature of isSubdirectory and to return a boolean instead of a string. Fixes golang/go#38558 Change-Id: I9c64604222ac277eae81a4111eef432ead887e9f Reviewed-on: https://go-review.googlesource.com/c/tools/+/266200 Trust: Rebecca Stambler <rstambler@golang.org> Run-TryBot: Rebecca Stambler <rstambler@golang.org> gopls-CI: kokoro <noreply+kokoro@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Heschi Kreinick <heschi@google.com> |
||
|---|---|---|
| .. | ||
| analysisinternal | ||
| apidiff | ||
| event | ||
| fakenet | ||
| fastwalk | ||
| gocommand | ||
| gopathwalk | ||
| imports | ||
| jsonrpc2 | ||
| lsp | ||
| memoize | ||
| packagesinternal | ||
| proxydir | ||
| span | ||
| stack | ||
| testenv | ||
| tool | ||
| typesinternal | ||
| xcontext | ||