Skip to content

Commit

Permalink
fix: server capabilities (ocaml#928)
Browse files Browse the repository at this point in the history
explicitly tell the client we don't care about includeText

Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
  • Loading branch information
rgrinberg committed Nov 21, 2022
1 parent 5301a3b commit fa055c3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions ocaml-lsp-server/src/import.ml
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ include struct
module RegistrationParams = RegistrationParams
module RenameOptions = RenameOptions
module RenameParams = RenameParams
module SaveOptions = SaveOptions
module SelectionRange = SelectionRange
module SelectionRangeParams = SelectionRangeParams
module SemanticTokens = SemanticTokens
Expand Down
2 changes: 1 addition & 1 deletion ocaml-lsp-server/src/ocaml_lsp_server.ml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ let initialize_info (client_capabilities : ClientCapabilities.t) :
~openClose:true
~change:TextDocumentSyncKind.Incremental
~willSave:false
~save:(`Bool true)
~save:(`SaveOptions (SaveOptions.create ~includeText:false ()))
~willSaveWaitUntil:false
())
in
Expand Down
2 changes: 1 addition & 1 deletion ocaml-lsp-server/test/e2e-new/start_stop.ml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ let%expect_test "start/stop" =
"textDocumentSync": {
"change": 2,
"openClose": true,
"save": true,
"save": { "includeText": false },
"willSave": false,
"willSaveWaitUntil": false
},
Expand Down

0 comments on commit fa055c3

Please sign in to comment.