You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 13:10:58 +00:00
Autocompletion: Remove additional brace from utility function options
This commit is contained in:
@@ -1524,7 +1524,6 @@ static void _find_identifiers(const GDScriptParser::CompletionContext &p_context
|
||||
|
||||
for (const StringName &util_func_name : utility_func_names) {
|
||||
ScriptLanguage::CodeCompletionOption option(util_func_name, ScriptLanguage::CODE_COMPLETION_KIND_FUNCTION);
|
||||
option.insert_text += "(";
|
||||
if (p_add_braces) {
|
||||
option.insert_text += "(";
|
||||
option.display += U"(\u2026)"; // As all utility functions contain an argument or more, this is hardcoded here.
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
scene="res://completion/get_node/get_node.tscn"
|
||||
[output]
|
||||
include=[
|
||||
; Utility Functions
|
||||
{"display": "print(…)", "insert_text": "print("},
|
||||
|
||||
; Node
|
||||
{"display": "add_child(…)"},
|
||||
{"display": "owner"},
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
scene="res://completion/get_node/get_node.tscn"
|
||||
[output]
|
||||
include=[
|
||||
; Utility Functions
|
||||
{"display": "print(…)", "insert_text": "print("},
|
||||
|
||||
; Node
|
||||
{"display": "add_child(…)"},
|
||||
{"display": "owner"},
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
scene="res://completion/get_node/get_node.tscn"
|
||||
[output]
|
||||
include=[
|
||||
; Utility Functions
|
||||
{"display": "print(…)", "insert_text": "print("},
|
||||
|
||||
; Node
|
||||
{"display": "add_child(…)"},
|
||||
{"display": "owner"},
|
||||
|
||||
Reference in New Issue
Block a user