diff options
author | Ian Cottrell <iancottrell@google.com> | 2019-04-01 19:38:11 -0400 |
---|---|---|
committer | Ian Cottrell <iancottrell@google.com> | 2019-04-02 16:07:49 +0000 |
commit | c5ac96b4c419ee8b66a6eb7e805180844f9f176b (patch) | |
tree | 2d82af0dd08734a63727643a0d8af1bbeabd6785 | |
parent | b7e8f894e31a2c38d0fcb029c1a9584e8d66319b (diff) | |
download | golang-x-tools-c5ac96b4c419ee8b66a6eb7e805180844f9f176b.tar.gz |
internal/span: span to protocol needs position as well as offset
Change-Id: I4f39abb5932a951b2e5fa0932f478b00138e626a
Reviewed-on: https://go-review.googlesource.com/c/tools/+/170186
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
Run-TryBot: Rebecca Stambler <rstambler@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
-rw-r--r-- | internal/lsp/protocol/span.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/lsp/protocol/span.go b/internal/lsp/protocol/span.go index 998856fa1..d4d841dc2 100644 --- a/internal/lsp/protocol/span.go +++ b/internal/lsp/protocol/span.go @@ -43,7 +43,7 @@ func (m *ColumnMapper) Range(s span.Span) (Range, error) { if m.URI != s.URI() { return Range{}, fmt.Errorf("column mapper is for file %q instead of %q", m.URI, s.URI()) } - s, err := s.WithOffset(m.Converter) + s, err := s.WithAll(m.Converter) if err != nil { return Range{}, err } |