diff options
author | Oliver Frank <oliverfrank321@gmail.com> | 2020-05-15 16:43:48 -0400 |
---|---|---|
committer | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-05-15 23:55:49 +0200 |
commit | 6815bf42b38c7c3dfde419d86dbc1bf012b035b2 (patch) | |
tree | b5084c2f334ed537fc35e25c8190d468ae1e2eb0 /modules/gdscript | |
parent | 3d09edeaef7274af1a794d2933ddde383be60578 (diff) |
Fix incorrect capabilities notification in LSP
(cherry picked from commit 2173d041af711c111d60d1fc1f45f96f4f8c7271)
Diffstat (limited to 'modules/gdscript')
-rw-r--r-- | modules/gdscript/language_server/lsp.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/gdscript/language_server/lsp.hpp b/modules/gdscript/language_server/lsp.hpp index 44a0076107..cf27a1578c 100644 --- a/modules/gdscript/language_server/lsp.hpp +++ b/modules/gdscript/language_server/lsp.hpp @@ -486,7 +486,7 @@ struct TextDocumentSyncOptions { * If present save notifications are sent to the server. If omitted the notification should not be * sent. */ - SaveOptions save; + bool save = false; Dictionary to_json() { Dictionary dict; @@ -494,7 +494,7 @@ struct TextDocumentSyncOptions { dict["willSave"] = willSave; dict["openClose"] = openClose; dict["change"] = change; - dict["save"] = save.to_json(); + dict["save"] = save; return dict; } }; @@ -1656,7 +1656,7 @@ struct ServerCapabilities { _FORCE_INLINE_ Dictionary to_json() { Dictionary dict; - dict["textDocumentSync"] = (int)textDocumentSync.change; + dict["textDocumentSync"] = textDocumentSync.to_json(); dict["completionProvider"] = completionProvider.to_json(); signatureHelpProvider.triggerCharacters.push_back(","); signatureHelpProvider.triggerCharacters.push_back("("); |