Autocompletion: Add support for string name option in more places

This commit is contained in:
HolonProduction
2024-06-11 22:28:18 +02:00
parent 292e50e17e
commit 51f74af2ac
12 changed files with 99 additions and 9 deletions

View File

@ -0,0 +1,11 @@
[input]
add_node_path_literals=true
[output]
include=[
{"insert_text": "^\"property_of_a\""},
{"insert_text": "^\"name\""},
]
exclude=[
{"insert_text": "\"property_of_a\""},
{"insert_text": "\"name\""},
]

View File

@ -0,0 +1,8 @@
extends Node
const A = preload("res://completion/class_a.notest.gd")
func _ready() -> void:
var a := A.new()
var tween := get_tree().create_tween()
tween.tween_property(a, )

View File

@ -0,0 +1,9 @@
[input]
add_string_name_literals=true
[output]
include=[
{"insert_text": "&\"test_input_action\""},
]
exclude=[
{"insert_text": "\"test_input_action\""},
]

View File

@ -0,0 +1,3 @@
func _input(event: InputEvent) -> void:
event.is_action_pressed()
pass

View File

@ -0,0 +1,11 @@
[input]
add_node_path_literals=false
[output]
include=[
{"insert_text": "\"property_of_a\""},
{"insert_text": "\"name\""},
]
exclude=[
{"insert_text": "^\"property_of_a\""},
{"insert_text": "^\"name\""},
]

View File

@ -0,0 +1,8 @@
extends Node
const A = preload("res://completion/class_a.notest.gd")
func _ready() -> void:
var a := A.new()
var tween := get_tree().create_tween()
tween.tween_property(a, )

View File

@ -0,0 +1,9 @@
[input]
add_string_name_literals=false
[output]
include=[
{"insert_text": "\"test_input_action\""},
]
exclude=[
{"insert_text": "&\"test_input_action\""},
]

View File

@ -0,0 +1,3 @@
func _input(event: InputEvent) -> void:
event.is_action_pressed()
pass

View File

@ -8,3 +8,10 @@ config_version=5
[application]
config/name="GDScript Integration Test Suite"
[input]
test_input_action={
"deadzone": 0.5,
"events": []
}