Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal/lsp: fix incorrect line and start of semantic tokens
Current implementation returns incorrect result when some of the items are skipped, because positions could be relative to a skipped item. Instead, each position must be relative to the previous item added to the result. Change-Id: I3c1a68d37bf0c9cfc1bccfe6f76c25b536224293 GitHub-Last-Rev: 6eedc7c GitHub-Pull-Request: #376 Reviewed-on: https://go-review.googlesource.com/c/tools/+/396715 Run-TryBot: Peter Weinberger <pjw@google.com> gopls-CI: kokoro <noreply+kokoro@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Peter Weinberger <pjw@google.com> Trust: Peter Weinberger <pjw@google.com> Trust: Suzy Mueller <suzmue@golang.org>
- Loading branch information