1
0
mirror of https://github.com/golang/go synced 2024-11-19 02:44:44 -07:00
go/internal/lsp/mod/testdata/unused
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
..
go.mod internal/lsp: add warning diagnostics for unused dependencies in go.mod files 2020-01-09 20:05:13 +00:00
go.mod.golden internal/lsp: use x/mod to get edits for go.mod quick fixes 2020-01-23 20:18:34 +00:00
go.sum internal/lsp: add warning diagnostics for unused dependencies in go.mod files 2020-01-09 20:05:13 +00:00
main.go internal/lsp: add warning diagnostics for unused dependencies in go.mod files 2020-01-09 20:05:13 +00:00