1
0
mirror of https://github.com/golang/go synced 2024-10-01 01:38:33 -06: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:
Rebecca Stambler 2019-06-18 12:41:22 -04:00
parent ab136c9d47
commit 04b924abaa

View File

@ -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 {