sourcegraph / go-langserver

Go language server to add Go support to editors and other tools that use the Language Server Protocol (LSP)
https://sourcegraph.com
MIT License
1.17k stars 89 forks source link

make references and lint work in projects outside the gopath #321

Closed imjustfly closed 6 years ago

imjustfly commented 6 years ago

After go1.11, user's project can be placed outside the gopath directory. Language server doesn't support go1.11 modules currently, this PR makes a little contribution.

This PR makes references and lint work for local packages and vendored packages. But references still doesn't support third-party packages only exists in go.mod file. Further works needed.

imjustfly commented 6 years ago

Test files need to be modified. Work on it later.

imjustfly commented 6 years ago

OK, I will fix these problems and add some tests in next couple of days.

imjustfly commented 6 years ago

Hi @keegancsmith , can you answer my questions in the review conversation ? I want to fix these problems ASAP. Thanks.