Skip to content

Commit

Permalink
Default to NotHandled:true for package queries (#3338)
Browse files Browse the repository at this point in the history
Fixes #3334 by telling gopls to fallback if the gopackagesdriver can't
`bazel query` about the requested file.
  • Loading branch information
ian-h-chamberlain authored Oct 31, 2022
1 parent fbea505 commit 03a8b8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/tools/gopackagesdriver/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{},
Expand Down

0 comments on commit 03a8b8e

Please sign in to comment.