go/internal/lsp
Peter Weinberger 351c04c5a1 /internal/lsp/source: apply directory filters to workspace symbols
Apply Options.DirectoryFilters when searching for workspace symbols.
The natural way to implement it would lead to an import loop, so
the working code was moved from cache to source.

Fixes golang/go#48939

Change-Id: Iccf32bc8327ba7845505a6a3de621db8946063f5
Reviewed-on: https://go-review.googlesource.com/c/tools/+/359514
Run-TryBot: Peter Weinberger <pjw@google.com>
gopls-CI: kokoro <noreply+kokoro@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Trust: Peter Weinberger <pjw@google.com>
Reviewed-by: Suzy Mueller <suzmue@golang.org>
2021-10-30 12:32:06 +00:00
..
analysis internal/lsp/analysis/infertypeargs: reduce diagnostic range 2021-10-19 20:35:15 +00:00
browser
cache /internal/lsp/source: apply directory filters to workspace symbols 2021-10-30 12:32:06 +00:00
cmd internal/lsp/protocol: update LSP definitions and stubs 2021-10-05 16:44:45 +00:00
command internal/lsp/command: fix typo in comment 2021-09-19 16:34:52 +00:00
debug internal/lsp/debug: improve readability of session options 2021-09-28 20:53:23 +00:00
diff
fake /internal/lsp/source: apply directory filters to workspace symbols 2021-10-30 12:32:06 +00:00
fuzzy internal/lsp/fuzzy: add a new fuzzy matcher optimized for Go symbols 2021-08-09 20:21:06 +00:00
helper internal/lsp/protocol: update LSP definitions and stubs 2021-10-05 16:44:45 +00:00
lsppos
lsprpc
mod
progress
protocol internal/lsp/protocol: update LSP definitions and stubs 2021-10-05 16:44:45 +00:00
regtest /internal/lsp/source: apply directory filters to workspace symbols 2021-10-30 12:32:06 +00:00
snippet
source /internal/lsp/source: apply directory filters to workspace symbols 2021-10-30 12:32:06 +00:00
template internal/lsp/templates: replace panic by logging 2021-09-20 18:36:32 +00:00
testdata internal/lsp: adjust extract function range if block statement 2021-10-22 02:18:41 +00:00
tests internal/lsp: temporarily strip subscripts from generic hover 2021-10-23 12:53:38 +00:00
README.md
call_hierarchy.go
code_action.go
code_lens.go
command.go internal/lsp/source: consider test variants when finding pkg from pos 2021-09-08 14:51:59 +00:00
completion.go internal/lsp/template: implement completions for template files 2021-09-14 19:06:02 +00:00
completion_test.go
debounce.go
debounce_test.go
definition.go internal/lsp: check for invalid URIs in definition 2021-10-29 19:33:54 +00:00
diagnostics.go internal/lsp/diagnostics: avoid erroneous error message for orphaned files 2021-09-20 15:08:51 +00:00
folding_range.go
format.go
general.go all: update install commands to go install pkg@version 2021-10-27 02:41:01 +00:00
highlight.go
hover.go
implementation.go
link.go
lsp_test.go internal/lsp: temporarily strip subscripts from generic hover 2021-10-23 12:53:38 +00:00
references.go
rename.go
reset_golden.sh
semantic.go internal/lsp: do not send semantic tokens that client doesn't support 2021-10-26 18:33:39 +00:00
server.go
server_gen.go internal/lsp/protocol: update LSP definitions and stubs 2021-10-05 16:44:45 +00:00
signature_help.go
symbols.go
text_synchronization.go
workspace.go
workspace_symbol.go

README.md

lsp

internal/lsp provides much of the Language Server Protocol (lsp) implementation for gopls.

Documentation for users and contributors can be found in the gopls/doc directory.