mirror of
https://github.com/godotengine/godot.git
synced 2025-10-28 12:14:44 +00:00
Use insertText from the internal autocompletion
* GDScriptLanguage::complete_code already adds parentheses to function calls, and does this a lot smarter than the language server right now. * Instead of the previous naive approach we now reuse the same logic as the internal editor. * For this to have any effect we also have to send the `insertText` field already during the completionRequest and not only during resolve.
This commit is contained in:
parent
bab2ad4d32
commit
bbb07ff8cb
2 changed files with 3 additions and 7 deletions
|
|
@ -1004,8 +1004,8 @@ struct CompletionItem {
|
|||
dict["label"] = label;
|
||||
dict["kind"] = kind;
|
||||
dict["data"] = data;
|
||||
dict["insertText"] = insertText;
|
||||
if (resolved) {
|
||||
dict["insertText"] = insertText;
|
||||
dict["detail"] = detail;
|
||||
dict["documentation"] = documentation.to_json();
|
||||
dict["deprecated"] = deprecated;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue