mirror of
https://github.com/golang/go
synced 2024-11-18 17:54:57 -07:00
e48fac377d
WorkspaceSymbols matches symbols across views using the given query, according to the matcher Matcher. The workspace symbol method is defined in the spec as follows: > The workspace symbol request is sent from the client to the server to > list project-wide symbols matching the query string. It is unclear what "project-wide" means here, but given the parameters of workspace/symbol do not include any workspace identifier, then it has to be assumed that "project-wide" means "across all workspaces". Hence why WorkspaceSymbols receives the views []View. However, it then becomes unclear what it would mean to call WorkspaceSymbols with a different configured Matcher per View. Therefore we assume that Session level configuration will define the Matcher to be used for the WorkspaceSymbols method. As part of this change we also tidy up lsp_test.go and source_test.go to remove some repetition. Change-Id: I444f9a78303ac9d2c8d8ac6496603b5758e4aafd Reviewed-on: https://go-review.googlesource.com/c/tools/+/228763 Run-TryBot: Paul Jolly <paul@myitcv.org.uk> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Robert Findley <rfindley@google.com> Reviewed-by: Rebecca Stambler <rstambler@golang.org> |
||
---|---|---|
.. | ||
code_lens.go | ||
comment_test.go | ||
comment.go | ||
completion_builtin.go | ||
completion_format.go | ||
completion_keywords.go | ||
completion_labels.go | ||
completion_literal.go | ||
completion_snippet.go | ||
completion_statements.go | ||
completion.go | ||
deep_completion.go | ||
diagnostics.go | ||
folding_range.go | ||
format_test.go | ||
format.go | ||
highlight.go | ||
hover.go | ||
identifier.go | ||
implementation.go | ||
options.go | ||
references.go | ||
rename_check.go | ||
rename.go | ||
signature_help.go | ||
source_test.go | ||
symbols.go | ||
types_format.go | ||
util.go | ||
view.go | ||
workspace_symbol.go |