1
0
mirror of https://github.com/golang/go synced 2024-11-18 20:44:45 -07:00
go/internal/lsp/source
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
..
comment_test.go
comment.go
completion_builtin.go internal/lsp/source: improve completion support for args to builtins 2020-01-14 05:24:53 +00:00
completion_format.go internal/lsp: merge completion options into source.Options 2020-01-13 20:09:44 +00:00
completion_keywords.go internal/lsp: sort by label after score 2019-12-30 21:11:21 +00:00
completion_labels.go internal/lsp: sort by label after score 2019-12-30 21:11:21 +00:00
completion_literal.go internal/lsp: merge completion options into source.Options 2020-01-13 20:09:44 +00:00
completion_snippet.go internal/lsp: merge completion options into source.Options 2020-01-13 20:09:44 +00:00
completion.go internal/lsp/source: improve completion support for args to builtins 2020-01-14 05:24:53 +00:00
deep_completion.go internal/lsp: merge completion options into source.Options 2020-01-13 20:09:44 +00:00
diagnostics.go internal/lsp: fix flaking internal/lsp/cmd tests 2020-01-14 21:42:16 +00:00
errors.go internal/lsp: fix flaking internal/lsp/cmd tests 2020-01-14 21:42:16 +00:00
folding_range.go internal/lsp: eliminate source.File type and move GetFile to snapshot 2019-12-19 20:51:25 +00:00
format.go internal/lsp: don't require type-checking for formatting 2020-01-13 19:43:37 +00:00
highlight.go internal/lsp: remove view.FindPosInPackage and view.FindMapperInPackage 2020-01-13 18:51:11 +00:00
hover.go internal/lsp: show comments for grouped variable declarations 2019-12-18 20:39:36 +00:00
identifier.go internal/lsp: remove view.FindPosInPackage and view.FindMapperInPackage 2020-01-13 18:51:11 +00:00
implementation.go internal/lsp: fix flaking internal/lsp/cmd tests 2020-01-14 21:42:16 +00:00
options.go internal/lsp: merge completion options into source.Options 2020-01-13 20:09:44 +00:00
references.go internal/lsp: reload workspace package metadata on demand 2020-01-13 20:10:07 +00:00
rename_check.go
rename.go internal/lsp: remove view.FindPosInPackage and view.FindMapperInPackage 2020-01-13 18:51:11 +00:00
signature_help.go internal/lsp: eliminate source.File type and move GetFile to snapshot 2019-12-19 20:51:25 +00:00
source_test.go internal/lsp: merge completion options into source.Options 2020-01-13 20:09:44 +00:00
symbols.go internal/lsp: remove view.FindPosInPackage and view.FindMapperInPackage 2020-01-13 18:51:11 +00:00
util.go internal/lsp: remove view.FindPosInPackage and view.FindMapperInPackage 2020-01-13 18:51:11 +00:00
view.go internal/lsp: add mapper for go.mod files 2020-01-14 22:04:35 +00:00