mirror of
https://github.com/golang/go
synced 2024-11-18 18:04:46 -07:00
internal/lsp: turn off go/packages debug logging
Change-Id: I810cff76e6920156f959643f0d16d10b595d9708 Reviewed-on: https://go-review.googlesource.com/c/tools/+/202043 Run-TryBot: Rebecca Stambler <rstambler@golang.org> Reviewed-by: Heschi Kreinick <heschi@google.com>
This commit is contained in:
parent
04252eccb9
commit
ed542cd5b2
@ -257,8 +257,10 @@ func Load(t testing.TB, exporter packagestest.Exporter, dir string) *Data {
|
||||
filename := data.Exported.File(testModule, fragment)
|
||||
data.fragments[filename] = fragment
|
||||
}
|
||||
data.Exported.Config.Logf = t.Logf
|
||||
data.Config.Logf = t.Logf
|
||||
|
||||
// Turn off go/packages debug logging.
|
||||
data.Exported.Config.Logf = nil
|
||||
data.Config.Logf = nil
|
||||
|
||||
// Merge the exported.Config with the view.Config.
|
||||
data.Config = *data.Exported.Config
|
||||
|
Loading…
Reference in New Issue
Block a user