Skip to content

Commit

Permalink
gopls/internal/lsp: announce selectionRangeProvider capability
Browse files Browse the repository at this point in the history
The server needs to tell the client it's supporting this feature.

Updates golang/go#36679

Change-Id: Ia6fdb35ea90fac81367d4b45721928c606344afc
Reviewed-on: https://go-review.googlesource.com/c/tools/+/458199
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com>
gopls-CI: kokoro <noreply+kokoro@google.com>
Reviewed-by: Robert Findley <rfindley@google.com>
  • Loading branch information
hyangah committed Dec 16, 2022
1 parent 9bc5dce commit 1270fd7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gopls/internal/lsp/general.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ See https://github.com/golang/go/issues/45732 for more information.`,
InlayHintProvider: protocol.InlayHintOptions{},
ReferencesProvider: true,
RenameProvider: renameOpts,
SelectionRangeProvider: protocol.SelectionRangeRegistrationOptions{},
SignatureHelpProvider: protocol.SignatureHelpOptions{
TriggerCharacters: []string{"(", ","},
},
Expand Down

0 comments on commit 1270fd7

Please sign in to comment.