Skip to content

Commit 5bfd102

Browse files
committed
Don't send file contents on save
1 parent 39b8a61 commit 5bfd102

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Server.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ syncOptions =
102102
_change = Just TextDocumentSyncKind_Incremental, -- receive change notifications from the client
103103
_willSave = Just False, -- receive willSave notifications from the client
104104
_willSaveWaitUntil = Just False, -- receive willSave notifications from the client
105-
_save = Just $ InR $ SaveOptions (Just True) -- includes the document content on save, so that we don't have to read it from the disk (not sure if this is still true in lsp 2)
105+
_save = Just $ InR $ SaveOptions (Just False)
106106
}
107107

108108
-- handlers of the LSP server

0 commit comments

Comments
 (0)