mirror of https://github.com/golang/go.git
The current DidModifyFiles logic does not handle the possibility of a directory URI in a didChangeWatchedFiles request. For creation and changes, this is fine because only file URIs matter in those cases, but for deletion, the deletion of a directory signifies the deletion of all of the files in it. Add handling for directories by looking up all of the known files in a given directory. We then create file modifications for all of those files, instead of the directory. Fixes golang/go#38422 Change-Id: I26d7b93285367fe116fd1cb3e8ec13a276f9e517 Reviewed-on: https://go-review.googlesource.com/c/tools/+/266138 Run-TryBot: Rebecca Stambler <rstambler@golang.org> gopls-CI: kokoro <noreply+kokoro@google.com> Trust: Rebecca Stambler <rstambler@golang.org> 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 | ||