diff options
author | Александр Черник <achernik@gmail.com> | 2023-05-06 20:56:15 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-05-12 12:31:21 +0200 |
commit | b2364048d2b89f5d7781cb25a9d340f0a302c732 (patch) | |
tree | 3945d531b949a90a8c889fd7fa51bcf816cb9d5a /modules/gdscript/language_server | |
parent | 35fa05fa51df23b481e852e0d715a42ba4db68c8 (diff) |
LSP: don't send empty completion command
(cherry picked from commit 5715d3eb593322d74994a1e979b3648f1fe3d9f4)
Diffstat (limited to 'modules/gdscript/language_server')
-rw-r--r-- | modules/gdscript/language_server/godot_lsp.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/gdscript/language_server/godot_lsp.h b/modules/gdscript/language_server/godot_lsp.h index 5b5327bdb7..b9a54cf818 100644 --- a/modules/gdscript/language_server/godot_lsp.h +++ b/modules/gdscript/language_server/godot_lsp.h @@ -1005,7 +1005,9 @@ struct CompletionItem { if (commitCharacters.size()) { dict["commitCharacters"] = commitCharacters; } - dict["command"] = command.to_json(); + if (!command.command.is_empty()) { + dict["command"] = command.to_json(); + } } return dict; } |