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:
Heschi Kreinick 2020-10-29 14:44:44 -04:00
parent c86e6230b4
commit 061905c3e8
1 changed files with 0 additions and 6 deletions

View File

@ -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)
}