From 23df8fef527ef6fdbf324091c05fd8e43904c4ec Mon Sep 17 00:00:00 2001 From: Ian Chamberlain Date: Fri, 28 Oct 2022 14:58:54 -0400 Subject: [PATCH] Default to NotHandled:true for package queries Fixes #3334 by telling gopls to fallback if the gopackagesdriver can't `bazel query` about the requested file. --- go/tools/gopackagesdriver/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go/tools/gopackagesdriver/main.go b/go/tools/gopackagesdriver/main.go index 9d36c8a85a..6836addcc2 100644 --- a/go/tools/gopackagesdriver/main.go +++ b/go/tools/gopackagesdriver/main.go @@ -62,7 +62,7 @@ var ( additionalAspects = strings.Fields(os.Getenv("GOPACKAGESDRIVER_BAZEL_ADDTL_ASPECTS")) additionalKinds = strings.Fields(os.Getenv("GOPACKAGESDRIVER_BAZEL_KINDS")) emptyResponse = &driverResponse{ - NotHandled: false, + NotHandled: true, Sizes: types.SizesFor("gc", "amd64").(*types.StdSizes), Roots: []string{}, Packages: []*FlatPackage{},