Merge pull request #76790 from achernik/master

LSP: don't send empty completion command
This commit is contained in:
Rémi Verschelde 2023-05-09 19:28:42 +02:00
commit c2ba89d9d1
No known key found for this signature in database
GPG key ID: C3336907360768E1

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