1
0
mirror of https://github.com/golang/go synced 2024-11-18 20:44:45 -07:00
go/internal/lsp/source
Muir Manders 5999de1043 internal/lsp: tighten up completion budget check
Tweak a couple things to improve how we reduce our search scope based
on remaining time budget:

- Check our budget on the first candidate rather than waiting for the
  1000th candidate. If type checking is slow you can be out of budget
  before you even begin.
- Reduce our budget check interval from 1000 candidates to 100
  candidates. This just helps us adjust our search scope faster.

The first tweak required me to raise the completion budget for tests
because 100ms is not always enough. I moved the budget into the
completion options so that tests can raise it.

Change-Id: I1aa7909d7baf9c998bc830c960dc579eb33db12a
Reviewed-on: https://go-review.googlesource.com/c/tools/+/195419
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
Run-TryBot: Rebecca Stambler <rstambler@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2019-09-17 02:32:08 +00:00
..
analysis.go go/analysis: handle common nil pointers 2019-08-24 21:01:00 +00:00
completion_format.go internal/lsp: use ParseGoHandles for the builtin package 2019-09-16 23:04:25 +00:00
completion_snippet.go internal/lsp: simplify snippet config/generation 2019-09-10 04:45:52 +00:00
completion.go internal/lsp: tighten up completion budget check 2019-09-17 02:32:08 +00:00
deep_completion.go internal/lsp: tighten up completion budget check 2019-09-17 02:32:08 +00:00
diagnostics_test.go
diagnostics.go internal/lsp: reduce usage of column mapper 2019-09-16 22:00:07 +00:00
enums.go internal/lsp: switch to using protocol positions for document symbols 2019-09-06 18:11:17 +00:00
folding_range.go internal/lsp: reduce usage of column mapper 2019-09-16 22:00:07 +00:00
format.go internal/lsp: reduce usage of column mapper 2019-09-16 22:00:07 +00:00
highlight.go internal/lsp: fix error formatting directive 2019-09-16 01:55:42 +00:00
hover.go internal/lsp: remove the GetToken and GetAST functions 2019-09-09 18:10:35 +00:00
identifier.go internal/lsp: use ParseGoHandles for the builtin package 2019-09-16 23:04:25 +00:00
imports_test.go internal/lsp: abstract the diff library so it can be substituted 2019-08-20 03:37:07 +00:00
imports.go internal/lsp: abstract the diff library so it can be substituted 2019-08-20 03:37:07 +00:00
options.go internal/lsp: tighten up completion budget check 2019-09-17 02:32:08 +00:00
references.go internal/lsp: derive ASTs from type information 2019-09-10 13:53:09 +00:00
rename_check.go internal/lsp: use memoize package to cache source.Packages 2019-08-13 21:41:43 +00:00
rename.go internal/lsp: reduce usage of column mapper 2019-09-16 22:00:07 +00:00
signature_help.go internal/lsp: use ParseGoHandles for the builtin package 2019-09-16 23:04:25 +00:00
source_test.go internal/lsp: tighten up completion budget check 2019-09-17 02:32:08 +00:00
suggested_fix.go internal/lsp: use protocol.TextEdits in suggested fixes 2019-09-07 02:01:28 +00:00
symbols.go internal/lsp: reduce usage of column mapper 2019-09-16 22:00:07 +00:00
util.go internal/lsp: use ParseGoHandles for the builtin package 2019-09-16 23:04:25 +00:00
view.go internal/lsp: use ParseGoHandles for the builtin package 2019-09-16 23:04:25 +00:00