mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 06:01:14 +00:00
Rename request_code_completion signal
This commit is contained in:
parent
df62b92d38
commit
1422c756ed
4 changed files with 15 additions and 15 deletions
|
|
@ -1793,7 +1793,7 @@ void CodeEdit::request_code_completion(bool p_force) {
|
|||
}
|
||||
|
||||
if (p_force) {
|
||||
emit_signal(SNAME("request_code_completion"));
|
||||
emit_signal(SNAME("code_completion_requested"));
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -1801,9 +1801,9 @@ void CodeEdit::request_code_completion(bool p_force) {
|
|||
int ofs = CLAMP(get_caret_column(), 0, line.length());
|
||||
|
||||
if (ofs > 0 && (is_in_string(get_caret_line(), ofs) != -1 || _is_char(line[ofs - 1]) || code_completion_prefixes.has(line[ofs - 1]))) {
|
||||
emit_signal(SNAME("request_code_completion"));
|
||||
emit_signal(SNAME("code_completion_requested"));
|
||||
} else if (ofs > 1 && line[ofs - 1] == ' ' && code_completion_prefixes.has(line[ofs - 2])) {
|
||||
emit_signal(SNAME("request_code_completion"));
|
||||
emit_signal(SNAME("code_completion_requested"));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -2261,7 +2261,7 @@ void CodeEdit::_bind_methods() {
|
|||
ADD_SIGNAL(MethodInfo("breakpoint_toggled", PropertyInfo(Variant::INT, "line")));
|
||||
|
||||
/* Code Completion */
|
||||
ADD_SIGNAL(MethodInfo("request_code_completion"));
|
||||
ADD_SIGNAL(MethodInfo("code_completion_requested"));
|
||||
|
||||
/* Symbol lookup */
|
||||
ADD_SIGNAL(MethodInfo("symbol_lookup", PropertyInfo(Variant::STRING, "symbol"), PropertyInfo(Variant::INT, "line"), PropertyInfo(Variant::INT, "column")));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue