1
0
mirror of https://github.com/golang/go synced 2024-11-18 20:44:45 -07:00
go/internal/lsp/source
Rebecca Stambler 73cd2cc3b5 internal/lsp: don't run analyses on the entire view
Running staticcheck on the entire workspace causes a slowdown, and most
likely users don't want to see staticcheck reports for every
subdirectory of their workspace. Only run staticcheck on open files.

Also, fixed a staticcheck warning that showed up along the way. Filed
golang/go#35718 to remind ourselves to fix all of the staticcheck warnings
that showed up when we ran gopls with staticcheck on x/tools.

Finally, made sure that we don't send empty diagnostics when diagnosing
the snapshot on start-up, as that is not necessary.

Change-Id: Ic51d1abfc80b1b53397057f06a4cfd7e2dc930f9
Reviewed-on: https://go-review.googlesource.com/c/tools/+/208098
Run-TryBot: Rebecca Stambler <rstambler@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Cottrell <iancottrell@google.com>
2019-11-25 22:48:44 +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_format.go internal/lsp: track and parse non-compiled go files 2019-11-25 19:20:50 +00:00
completion_keywords.go internal/lsp: add some keyword completions 2019-10-22 20:49:18 +00:00
completion_labels.go internal/lsp: fix label completion in range and type switch stmts 2019-10-22 21:33:09 +00:00
completion_literal.go internal/span: support line directives 2019-11-25 19:20:43 +00:00
completion_snippet.go internal/lsp: reorganize and refactor code 2019-11-21 02:33:28 +00:00
completion.go internal/lsp: don't run analyses on the entire view 2019-11-25 22:48:44 +00:00
deep_completion.go internal/lsp/source: attach Package to completions when available 2019-11-05 20:21:09 +00:00
diagnostics.go internal/lsp: don't run analyses on the entire view 2019-11-25 22:48:44 +00:00
errors.go internal/lsp: move the missing imports handling into the metadata 2019-09-25 23:05:17 +00:00
folding_range.go internal/span: support line directives 2019-11-25 19:20:43 +00:00
format.go internal/lsp: don't run analyses on the entire view 2019-11-25 22:48:44 +00:00
highlight.go internal/lsp: don't run analyses on the entire view 2019-11-25 22:48:44 +00:00
hover.go internal/lsp: add documentation for package-level vars 2019-11-25 18:28:23 +00:00
identifier.go internal/lsp: don't run analyses on the entire view 2019-11-25 22:48:44 +00:00
implementation.go internal/lsp: do not return interface itself when finding implementations 2019-11-25 20:50:44 +00:00
options.go internal/lsp: set version correctly after textDocument/didOpen 2019-11-25 19:35:51 +00:00
references.go internal/lsp: only search for references in reverse dependencies 2019-11-25 14:46:06 +00:00
rename_check.go internal/lsp: improve literal func completion candidates 2019-11-07 21:18:00 +00:00
rename.go internal/lsp: use AST to construct placeholders 2019-11-25 01:11:57 +00:00
signature_help.go internal/lsp: don't run analyses on the entire view 2019-11-25 22:48:44 +00:00
source_test.go internal/lsp: don't run analyses on the entire view 2019-11-25 22:48:44 +00:00
suggested_fix.go internal/lsp: move error range computations into cache package 2019-10-21 22:12:58 +00:00
symbols.go internal/lsp: don't run analyses on the entire view 2019-11-25 22:48:44 +00:00
tidy.go internal/lsp: support running go mod tidy as a code action 2019-09-20 13:08:46 +00:00
util.go internal/lsp: fix return variables for FindPosInPackage 2019-11-25 19:51:13 +00:00
view.go internal/lsp: don't run analyses on the entire view 2019-11-25 22:48:44 +00:00