1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-05 19:31:35 +00:00

LSP: don't send empty completion command

This commit is contained in:
Александр Черник
2023-05-06 20:56:15 +01:00
parent 64eeb04d2c
commit 5715d3eb59

View File

@@ -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;
}