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>
This commit is contained in:
Ian Cottrell 2019-04-01 19:38:11 -04:00
parent b7e8f894e3
commit c5ac96b4c4
1 changed files with 1 additions and 1 deletions

View File

@ -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
}