go/internal/lsp/mod
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
..
testdata/unchanged internal/lsp/tests: fix reset of golden files 2020-02-19 14:42:13 +00:00
code_lens.go internal/lsp: report diagnostics on go.work files 2022-03-04 18:29:58 +00:00
diagnostics.go internal/lsp: report diagnostics on go.work files 2022-03-04 18:29:58 +00:00
format.go all: add copyright notices to files that are missing them 2021-01-06 17:23:47 +00:00
hover.go internal/lsp/mod: fix broken assumptions about file base 2022-06-01 22:04:06 +00:00
mod_test.go gopls: remove the workspace_metadata command 2022-02-04 14:02:58 +00:00