commit | c5ac96b4c419ee8b66a6eb7e805180844f9f176b | [log] [tgz] |
---|---|---|
author | Ian Cottrell <iancottrell@google.com> | Mon Apr 01 19:38:11 2019 -0400 |
committer | Ian Cottrell <iancottrell@google.com> | Tue Apr 02 16:07:49 2019 +0000 |
tree | 2d82af0dd08734a63727643a0d8af1bbeabd6785 | |
parent | b7e8f894e31a2c38d0fcb029c1a9584e8d66319b [diff] |
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>
diff --git a/internal/lsp/protocol/span.go b/internal/lsp/protocol/span.go index 998856f..d4d841d 100644 --- a/internal/lsp/protocol/span.go +++ b/internal/lsp/protocol/span.go
@@ -43,7 +43,7 @@ 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 }