From 832c4b4433db25f2cc59cd86d6887c0dfdac4335 Mon Sep 17 00:00:00 2001 From: Rob Findley Date: Fri, 23 Oct 2020 17:02:16 -0400 Subject: [PATCH] internal/lsp/source: tweak the WorkspaceSymbols docstring The workspace symbols docstring was indenting quoted text using '>', but this is incompatible with convention of simply using indentation to cause pre-formatted text. Change-Id: Ifbaf88e19ac09a29b83f1812c576de6ea96a0793 Reviewed-on: https://go-review.googlesource.com/c/tools/+/264636 Trust: Robert Findley Run-TryBot: Robert Findley gopls-CI: kokoro TryBot-Result: Go Bot Reviewed-by: Rebecca Stambler --- internal/lsp/source/workspace_symbol.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/lsp/source/workspace_symbol.go b/internal/lsp/source/workspace_symbol.go index 25010de7f8..effa86ae30 100644 --- a/internal/lsp/source/workspace_symbol.go +++ b/internal/lsp/source/workspace_symbol.go @@ -25,13 +25,13 @@ import ( // sent in response to a client. const maxSymbols = 100 -// WorkspaceSymbols matches symbols across views using the given query, -// according to the SymbolMatcher matcher. +// WorkspaceSymbols matches symbols across all views using the given query, +// according to the match semantics parameterized by matcherType and style. // // 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. +// 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