From 04b924abaa25159becde493bc31b979bcecd4887 Mon Sep 17 00:00:00 2001 From: Rebecca Stambler Date: Tue, 18 Jun 2019 12:41:22 -0400 Subject: [PATCH] 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 Reviewed-by: Ian Cottrell --- internal/lsp/general.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/lsp/general.go b/internal/lsp/general.go index c8b6b6b25c..dbc881c6d1 100644 --- a/internal/lsp/general.go +++ b/internal/lsp/general.go @@ -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 {