mirror of
https://github.com/golang/go
synced 2024-11-18 16:14:46 -07:00
internal/lsp: enable textDocument/didSave notifications
The previous change to handle didSave never actually was turned on because you need to specify it in the server capabilities. Change-Id: I5ce40b4270eda125e0af6accf144d2a96070238c Reviewed-on: https://go-review.googlesource.com/c/tools/+/182777 Run-TryBot: Rebecca Stambler <rstambler@golang.org> Reviewed-by: Ian Cottrell <iancottrell@google.com>
This commit is contained in:
parent
ab136c9d47
commit
04b924abaa
@ -76,6 +76,9 @@ func (s *Server) initialize(ctx context.Context, params *protocol.InitializePara
|
||||
TextDocumentSync: &protocol.TextDocumentSyncOptions{
|
||||
Change: s.textDocumentSyncKind,
|
||||
OpenClose: true,
|
||||
Save: &protocol.SaveOptions{
|
||||
IncludeText: false,
|
||||
},
|
||||
},
|
||||
TypeDefinitionProvider: true,
|
||||
Workspace: &struct {
|
||||
|
Loading…
Reference in New Issue
Block a user