go/internal/lsp/source
Rob Findley 322816044c internal/typeparams: update x/tools for recent typeparams changes
Recent changes to the go/ast APIs for type parameters have broken the
internal/typeparams package when built with -tags=typeparams.

Fix this by adjusting the internal/typeparams API. Also update a few
tests accordingly.

Bump the build constraint used by the internal/typeparams package to
go1.18, as we are no longer compatible with the 1.17 typeparams API. It
is no long possible to opt in to type parameter specific functionality
1.17, which is fine as the dev.typeparams branch has moved to 1.18.

Even after these fixes, not all x/tools tests pass with go1.18. Some
completion tests are failing due to finding 'any' in types.Universe.

Change-Id: I5f92870aaf7853e531e3a154987f98520a52d70c
Reviewed-on: https://go-review.googlesource.com/c/tools/+/339349
Trust: Robert Findley <rfindley@google.com>
Trust: Robert Griesemer <gri@golang.org>
Run-TryBot: Robert Findley <rfindley@google.com>
gopls-CI: kokoro <noreply+kokoro@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
2021-08-03 15:39:08 +00:00
..
completion internal/lsp: in degraded mode, limit the workspace to active packages 2021-07-26 20:36:31 +00:00
add_import.go internal/lsp: add list_known_packages and add_import commands 2021-05-23 03:57:00 +00:00
api_json.go internal/lsp/source: move diagnosticsDelay out of experimental 2021-07-08 19:56:33 +00:00
call_hierarchy.go internal/lsp: include function literals in outgoing call hierarchy 2021-06-01 22:58:04 +00:00
code_lens.go internal/lsp: switch to the new command API 2021-02-09 22:09:28 +00:00
comment.go internal/lsp/source: refactor commentToMarkdown function 2021-05-19 23:19:09 +00:00
comment_test.go internal/lsp/source: refactor commentToMarkdown function 2021-05-19 23:19:09 +00:00
diagnostics.go internal/lsp: fix support for SourceFixAll code actions 2021-03-24 23:51:27 +00:00
extract.go internal/lsp: send "extract variable" edits ordered 2021-08-02 20:18:28 +00:00
fix.go internal/lsp: send "extract variable" edits ordered 2021-08-02 20:18:28 +00:00
folding_range.go internal/lsp: fix folding range for block comments 2021-06-07 15:13:07 +00:00
format.go internal/lsp/source: compute imports text edits from scratch 2021-07-22 17:13:07 +00:00
format_test.go all: add copyright notices to files that are missing them 2021-01-06 17:23:47 +00:00
gc_annotations.go internal/lsp: key GC details off package ID 2021-03-02 22:01:38 +00:00
highlight.go internal/lsp/source: fix Highlight for std and 3rd-party packages 2021-04-05 22:17:18 +00:00
hover.go internal/lsp/source: improve logic for finding full syntax in hover 2021-07-26 20:35:51 +00:00
identifier.go internal/typeparams: update x/tools for recent typeparams changes 2021-08-03 15:39:08 +00:00
identifier_test.go internal/lsp: fix some incorrect spelling 2020-11-24 11:59:21 +00:00
implementation.go internal/lsp: find references for ident before selector 2021-08-02 19:06:04 +00:00
known_packages.go internal/lsp: add list_known_packages and add_import commands 2021-05-23 03:57:00 +00:00
options.go internal/lsp/source: move diagnosticsDelay out of experimental 2021-07-08 19:56:33 +00:00
options_test.go internal/lsp: restructure user options (CL 278433 continued) 2020-12-30 21:54:22 +00:00
references.go internal/lsp/source: re-parse if needed when collecting identifier info 2021-05-18 02:12:20 +00:00
rename.go internal/lsp/source: fix comment update during rename for short variable declarations 2021-07-12 21:21:15 +00:00
rename_check.go internal/lsp/source: eliminate GetTypeCheckDiagnostics 2021-03-03 21:21:28 +00:00
signature_help.go internal/lsp: skip signature help within a string literal 2021-07-26 16:44:13 +00:00
source_test.go internal/lsp: add extract to method code action 2021-07-23 18:08:39 +00:00
symbols.go internal/lsp: don't show blank identifiers in outline 2020-10-09 01:09:51 +00:00
types_format.go internal/lsp: address some staticcheck warning 2021-06-03 03:03:28 +00:00
util.go internal/lsp: handle invalid positions in semantic token debug logic 2021-08-02 20:18:07 +00:00
view.go internal/lsp: in degraded mode, limit the workspace to active packages 2021-07-26 20:36:31 +00:00
workspace_symbol.go internal/lsp: in degraded mode, limit the workspace to active packages 2021-07-26 20:36:31 +00:00
workspace_symbol_test.go internal/lsp/source: workspace symbol improvements for selectors 2021-07-21 20:52:30 +00:00