2
0
Fork 0

LSP: don't send empty completion command

(cherry picked from commit 5715d3eb59)
4.0
Александр Черник 2023-05-06 20:56:15 +07:00 committed by Rémi Verschelde
parent 35fa05fa51
commit b2364048d2
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 3 additions and 1 deletions

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