Skip to content

Commit

Permalink
LSP: don't send empty completion command
Browse files Browse the repository at this point in the history
  • Loading branch information
achernik committed May 6, 2023
1 parent 64eeb04 commit 5715d3e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/gdscript/language_server/godot_lsp.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 5715d3e

Please sign in to comment.