mirror of https://github.com/golang/go.git
internal/lsp/cache: stop unnecessarily waiting for IWL
These were added in https://golang.org/cl/237419 and I don't think they actually fixed anything. I'd like to remove them and see if anything goes south. Change-Id: I2f3a48d0e8e40b7a79b963a9319d426cbc6f5d9a Reviewed-on: https://go-review.googlesource.com/c/tools/+/266341 Trust: Heschi Kreinick <heschi@google.com> Run-TryBot: Heschi Kreinick <heschi@google.com> gopls-CI: kokoro <noreply+kokoro@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Rebecca Stambler <rstambler@golang.org>
This commit is contained in:
parent
c86e6230b4
commit
061905c3e8
|
|
@ -202,9 +202,6 @@ func (s *snapshot) ModWhy(ctx context.Context, fh source.FileHandle) (map[string
|
|||
if fh.Kind() != source.Mod {
|
||||
return nil, fmt.Errorf("%s is not a go.mod file", fh.URI())
|
||||
}
|
||||
if err := s.awaitLoaded(ctx); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if handle := s.getModWhyHandle(fh.URI()); handle != nil {
|
||||
return handle.why(ctx, s)
|
||||
}
|
||||
|
|
@ -296,9 +293,6 @@ func (s *snapshot) ModUpgrade(ctx context.Context, fh source.FileHandle) (map[st
|
|||
if fh.Kind() != source.Mod {
|
||||
return nil, fmt.Errorf("%s is not a go.mod file", fh.URI())
|
||||
}
|
||||
if err := s.awaitLoaded(ctx); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if handle := s.getModUpgradeHandle(fh.URI()); handle != nil {
|
||||
return handle.upgrades(ctx, s)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue