1
0
mirror of https://github.com/golang/go synced 2024-11-19 01:44:40 -07:00
go/internal/lsp/mod
Rohan Challa 579903b3ad internal/lsp: add mapper for go.mod files
This change adds a protocol.ColumnMapper when parsing go.mod files. This will prevent us from having to worry about line and column offsets, specifically when converting from the x/mod/modfile position to a span.Span.

Updates golang/go#31999

Change-Id: Iacdfb42d61dfea9b5f70325cf5a87c9575f8f345
Reviewed-on: https://go-review.googlesource.com/c/tools/+/214699
Run-TryBot: Rohan Challa <rohan@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
2020-01-14 22:04:35 +00:00
..
testdata internal/lsp: surface diagnostics for invalid go.mod files 2020-01-13 15:48:38 +00:00
diagnostics.go internal/lsp: add mapper for go.mod files 2020-01-14 22:04:35 +00:00
mod_test.go internal/lsp: change go1.14 check to be more lenient 2020-01-13 22:38:16 +00:00