go/internal/lsp/protocol
Robert Findley 3dd056a8c5 internal/lsp/mod: fix broken assumptions about file base
Logic in mod.Hover relied upon ColumnMapper.TokFile being the only file
in its FileSet. Fix this to compare offsets with offsets.

Also use safetoken.InRange in semantic.go, to fix an incorrect bounds
check.

Change-Id: Ia18a0799fea1120674e3772efdf0bdb724e554e7
Reviewed-on: https://go-review.googlesource.com/c/tools/+/409934
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Robert Findley <rfindley@google.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
gopls-CI: kokoro <noreply+kokoro@google.com>
2022-06-01 22:04:06 +00:00
..
typescript gopls: remove usage of golang.org/x/xerrors 2022-04-20 15:33:22 +00:00
codeactionkind.go gopls: add "go test" code action 2020-10-13 16:52:01 +00:00
context.go all: add copyright notices to files that are missing them 2021-01-06 17:23:47 +00:00
doc.go internal/lsp: the core lsp protocol 2018-09-25 15:17:08 +00:00
enums.go internal/lsp: remove duplicated enums 2019-09-25 15:30:23 +00:00
log.go all: add copyright notices to files that are missing them 2021-01-06 17:23:47 +00:00
protocol.go gopls: remove usage of golang.org/x/xerrors 2022-04-20 15:33:22 +00:00
span.go internal/lsp/mod: fix broken assumptions about file base 2022-06-01 22:04:06 +00:00
tsclient.go gopls: remove usage of golang.org/x/xerrors 2022-04-20 15:33:22 +00:00
tsprotocol.go internal/lsp/protocol: avoid replying with non-nil interface values in case of error 2022-04-13 01:06:48 +00:00
tsserver.go gopls: remove usage of golang.org/x/xerrors 2022-04-20 15:33:22 +00:00