This is what gopls will be built upon, and we should consider migrating there to have better compatibility with gopls in the future.
Worth noting that our package driver could now be used to power tools other than gopls. This includes golangci-lint or other linters in the same category. In the future, we should also aim to support official Go tools such as govulncheck via a proper package driver.
There is now an official documentation for the Package driver protocol via x/tools https://pkg.go.dev/golang.org/x/tools/go/packages#hdr-The_driver_protocol
This is what
gopls
will be built upon, and we should consider migrating there to have better compatibility withgopls
in the future.Worth noting that our package driver could now be used to power tools other than
gopls
. This includesgolangci-lint
or other linters in the same category. In the future, we should also aim to support official Go tools such as govulncheck via a proper package driver.