mirror of
https://github.com/golang/go
synced 2024-11-18 18:44:42 -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{
|
TextDocumentSync: &protocol.TextDocumentSyncOptions{
|
||||||
Change: s.textDocumentSyncKind,
|
Change: s.textDocumentSyncKind,
|
||||||
OpenClose: true,
|
OpenClose: true,
|
||||||
|
Save: &protocol.SaveOptions{
|
||||||
|
IncludeText: false,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
TypeDefinitionProvider: true,
|
TypeDefinitionProvider: true,
|
||||||
Workspace: &struct {
|
Workspace: &struct {
|
||||||
|
Loading…
Reference in New Issue
Block a user