Autocompletion: Don't add parenthesis if Callable is expected

This commit is contained in:
HolonProduction
2024-08-31 12:12:19 +02:00
parent af2c713971
commit e7487263ad
16 changed files with 260 additions and 89 deletions

View File

@ -0,0 +1,8 @@
[output]
include=[
{"display": "hello_world", "insert_text": "hello_world"},
]
exclude=[
{"insert_text": "hello_world()"},
{"insert_text": "hello_world("},
]

View File

@ -0,0 +1,8 @@
signal test
func _init() -> void:
test.connect(h)
pass
func hello_world():
pass

View File

@ -0,0 +1,8 @@
[output]
include=[
{"display": "hello_world", "insert_text": "hello_world"},
]
exclude=[
{"insert_text": "hello_world()"},
{"insert_text": "hello_world("},
]

View File

@ -0,0 +1,8 @@
var arr: Array
func _init() -> void:
arr.sort_custom(h
pass
func hello_world():
pass

View File

@ -0,0 +1,8 @@
[output]
include=[
{"display": "hello_world", "insert_text": "hello_world"},
]
exclude=[
{"insert_text": "hello_world()"},
{"insert_text": "hello_world("},
]

View File

@ -0,0 +1,9 @@
func test(a: Callable, b):
pass
func _init() -> void:
test(h)
pass
func hello_world():
pass

View File

@ -0,0 +1,8 @@
[output]
include=[
{"display": "hello_world", "insert_text": "hello_world"},
]
exclude=[
{"insert_text": "hello_world()"},
{"insert_text": "hello_world("},
]

View File

@ -0,0 +1,9 @@
func test(a, b: Callable):
pass
func _init() -> void:
test(hello_world(), h)
pass
func hello_world():
pass

View File

@ -0,0 +1,8 @@
[output]
include=[
{"display": "hello_world()", "insert_text": "hello_world()"},
]
exclude=[
{"insert_text": "hello_world"},
{"insert_text": "hello_world("},
]

View File

@ -0,0 +1,9 @@
func test(a, b: Callable):
pass
func _init() -> void:
test(h)
pass
func hello_world():
pass

View File

@ -0,0 +1,8 @@
[output]
include=[
{"display": "hello_world", "insert_text": "hello_world"},
]
exclude=[
{"display": "hello_world", "insert_text": "hello_world()"},
{"display": "hello_world", "insert_text": "hello_world("},
]

View File

@ -0,0 +1,8 @@
extends Node
func _init() -> void:
create_tween().tween_callback(h)
pass
func hello_world():
pass