x/tools/gopls: Server sends 'window/showDocument' even when client doesn't support it #68904
Labels
Documentation
gopls
Issues related to the Go language server, gopls.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
gopls version
0.16.1
go env
What did you do?
Using a LSP client which does not announce the
ShowDocumentClientCapabilities.support
astrue
, issue acodeAction
request for any file.What did you see happen?
The following CodeActions are offered:
When executing the associated
command
, thegopls
server sendswindow/showDocument
requests to the client.This is a breach of LSP protocol.
What did you expect to see?
The server should not announce these codeActions if their commands require use of unsupported client features.
Editor and settings
LSP client = ycmd
Logs
The text was updated successfully, but these errors were encountered: