1
0
mirror of https://github.com/golang/go synced 2024-11-19 05:34:40 -07:00
go/internal/lsp/source
Rebecca Stambler f191eec953 internal/lsp: use snapshot to get reverse dependencies
This change modifies the behavior of the GetReverseDependencies function
used for diagnostics. Since we now return diagnostics for the entire
workspace, we don't have to worry if a file is open to show errors in
it. This change requires the addition of a new (*snapshot).PackageHandle
function that gets a CheckPackageHandle for a given package ID. This
function does not cause a re-load of the package metadata, though if we
feel that this is something we need in the future we can add it.

Change-Id: I863bdf284d15f2317d8fae395928a90b9455146b
Reviewed-on: https://go-review.googlesource.com/c/tools/+/208102
Run-TryBot: Rebecca Stambler <rstambler@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Heschi Kreinick <heschi@google.com>
2019-11-22 02:13:35 +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: reorganize and refactor code 2019-11-21 02:33:28 +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/lsp: reorganize and refactor code 2019-11-21 02:33:28 +00:00
completion_snippet.go internal/lsp: reorganize and refactor code 2019-11-21 02:33:28 +00:00
completion.go internal/lsp: reorganize and refactor code 2019-11-21 02:33:28 +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: use snapshot to get reverse dependencies 2019-11-22 02:13:35 +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/lsp: reorganize and refactor code 2019-11-21 02:33:28 +00:00
format.go internal/lsp: use version numbers in diagnostic messages 2019-11-21 20:01:42 +00:00
highlight.go internal/lsp: add control flow highlighting inside for loops 2019-11-21 21:43:27 +00:00
hover.go internal/lsp: don't associate package with snapshot 2019-10-23 20:24:04 +00:00
identifier.go internal/lsp: reorganize and refactor code 2019-11-21 02:33:28 +00:00
implementation.go internal/lsp: rename Files to CompiledGoFiles 2019-11-20 22:19:51 +00:00
options.go internal/lsp: reorganize the generated Go code for the lsp protocol 2019-11-18 19:51:19 +00:00
references.go internal/lsp: don't search other packages for unexported references 2019-11-18 20:05:02 +00:00
rename_check.go internal/lsp: improve literal func completion candidates 2019-11-07 21:18:00 +00:00
rename.go internal/lsp: fix and re-enable godef tests 2019-11-20 21:51:18 +00:00
signature_help.go internal/lsp: reorganize and refactor code 2019-11-21 02:33:28 +00:00
source_test.go internal/lsp: delete the source.Diagnostic.File field 2019-11-22 00:05:30 +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: reorganize and refactor code 2019-11-21 02:33:28 +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: rename Files to CompiledGoFiles 2019-11-20 22:19:51 +00:00
view.go internal/lsp: use snapshot to get reverse dependencies 2019-11-22 02:13:35 +00:00