1
0
mirror of https://github.com/golang/go synced 2024-11-18 20:04:52 -07:00
go/internal/lsp/source
Heschi Kreinick 7042ee646e internal/lsp/source: always look up mapper when building ranges
Any file could have //line directives in it, which means that we should
never trust a mapper that was looked up for a whole file. Remove the
range conversion helpers that accepted a mapper and look it up on the
spot.

Change-Id: Ic518891fcc1a682b31cbc6d1d4e1e1af1ef21962
Reviewed-on: https://go-review.googlesource.com/c/tools/+/214949
Run-TryBot: Heschi Kreinick <heschi@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
2020-01-16 01:10:02 +00:00
..
comment_test.go internal/lsp: convert comments to markdown before sending to client 2019-10-04 18:35:38 +00:00
comment.go internal/lsp: convert comments to markdown before sending to client 2019-10-04 18:35:38 +00:00
completion_builtin.go internal/lsp/cache: initialize view before LookupBuiltin 2020-01-16 00:42:58 +00:00
completion_format.go internal/lsp/source: improve completion in type assertions 2020-01-16 01:06:23 +00:00
completion_keywords.go internal/lsp: sort by label after score 2019-12-30 21:11:21 +00:00
completion_labels.go internal/lsp: sort by label after score 2019-12-30 21:11:21 +00:00
completion_literal.go internal/lsp/source: improve completion in type assertions 2020-01-16 01:06:23 +00:00
completion_snippet.go internal/lsp: merge completion options into source.Options 2020-01-13 20:09:44 +00:00
completion.go internal/lsp/source: improve completion in type assertions 2020-01-16 01:06:23 +00:00
deep_completion.go internal/lsp: merge completion options into source.Options 2020-01-13 20:09:44 +00:00
diagnostics.go internal/lsp: diagnose the snapshot on every text synchronization event 2020-01-15 23:07:48 +00:00
errors.go internal/lsp: diagnose the snapshot on every text synchronization event 2020-01-15 23:07:48 +00:00
folding_range.go internal/lsp: eliminate source.File type and move GetFile to snapshot 2019-12-19 20:51:25 +00:00
format.go internal/lsp: finish renaming CheckPackageHandle to PackageHandle 2020-01-14 23:56:10 +00:00
highlight.go internal/lsp/source: always look up mapper when building ranges 2020-01-16 01:10:02 +00:00
hover.go internal/lsp: show comments for grouped variable declarations 2019-12-18 20:39:36 +00:00
identifier.go internal/lsp/cache: initialize view before LookupBuiltin 2020-01-16 00:42:58 +00:00
implementation.go internal/lsp: fix flaking internal/lsp/cmd tests 2020-01-14 21:42:16 +00:00
options.go internal/lsp,internal/telemetry: correct stale docstrings 2020-01-15 14:25:42 +00:00
references.go internal/lsp: reload workspace package metadata on demand 2020-01-13 20:10:07 +00:00
rename_check.go internal/lsp: improve literal func completion candidates 2019-11-07 21:18:00 +00:00
rename.go internal/lsp: remove view.FindPosInPackage and view.FindMapperInPackage 2020-01-13 18:51:11 +00:00
signature_help.go internal/lsp/cache: initialize view before LookupBuiltin 2020-01-16 00:42:58 +00:00
source_test.go internal/lsp/source: improve completion in type assertions 2020-01-16 01:06:23 +00:00
symbols.go internal/lsp/source: always look up mapper when building ranges 2020-01-16 01:10:02 +00:00
util.go internal/lsp/source: always look up mapper when building ranges 2020-01-16 01:10:02 +00:00
view.go internal/lsp/cache: initialize view before LookupBuiltin 2020-01-16 00:42:58 +00:00