1
0
mirror of https://github.com/golang/go synced 2024-11-18 22:14:56 -07:00
go/internal/lsp/mod/testdata
Rohan Challa 0043dadf92 internal/lsp: use x/mod to get edits for go.mod quick fixes
This change uses the wonderful functions from x/mod to get the proper edits for the quick fixes on a go.mod diagnostic. It also creates a goModData structure to hold the data thats gets passed into the various parse functions, this will help reduce the large function prototypes that can occur when we decompose the logic. It also refactors the Modfiles() function to return span.URIs vs FileHandles.

Change-Id: Ifa0896442650f2ddbd8fe98d8f231a9e94c3d042
Reviewed-on: https://go-review.googlesource.com/c/tools/+/215097
Run-TryBot: Rohan Challa <rohan@golang.org>
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2020-01-23 20:18:34 +00:00
..
indirect internal/lsp: use x/mod to get edits for go.mod quick fixes 2020-01-23 20:18:34 +00:00
invalidgo internal/lsp: surface diagnostics for invalid go.mod files 2020-01-13 15:48:38 +00:00
invalidrequire internal/lsp: show dependency quick fixes for go.mod diagnostics 2020-01-15 16:51:05 +00:00
unchanged go/packages: fix incorrect needtypes and needsrcs logic 2020-01-16 22:59:55 +00:00
unknowndirective internal/lsp: surface diagnostics for invalid go.mod files 2020-01-13 15:48:38 +00:00
unused internal/lsp: use x/mod to get edits for go.mod quick fixes 2020-01-23 20:18:34 +00:00