-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #93057 from HolonProduction/not-enough-code-paths
Autocompletion: Add support for string name option in more places
- Loading branch information
Showing
12 changed files
with
99 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
...dscript/tests/scripts/completion/argument_options/string_literals/add_node_path_tween.cfg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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\""}, | ||
] |
8 changes: 8 additions & 0 deletions
8
...gdscript/tests/scripts/completion/argument_options/string_literals/add_node_path_tween.gd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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, ➡) |
9 changes: 9 additions & 0 deletions
9
...tests/scripts/completion/argument_options/string_literals/add_string_name_input_event.cfg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[input] | ||
add_string_name_literals=true | ||
[output] | ||
include=[ | ||
{"insert_text": "&\"test_input_action\""}, | ||
] | ||
exclude=[ | ||
{"insert_text": "\"test_input_action\""}, | ||
] |
3 changes: 3 additions & 0 deletions
3
.../tests/scripts/completion/argument_options/string_literals/add_string_name_input_event.gd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
func _input(event: InputEvent) -> void: | ||
event.is_action_pressed(➡) | ||
pass |
11 changes: 11 additions & 0 deletions
11
...pt/tests/scripts/completion/argument_options/string_literals/dont_add_node_path_tween.cfg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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\""}, | ||
] |
8 changes: 8 additions & 0 deletions
8
...ipt/tests/scripts/completion/argument_options/string_literals/dont_add_node_path_tween.gd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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, ➡) |
9 changes: 9 additions & 0 deletions
9
.../scripts/completion/argument_options/string_literals/dont_add_string_name_input_event.cfg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[input] | ||
add_string_name_literals=false | ||
[output] | ||
include=[ | ||
{"insert_text": "\"test_input_action\""}, | ||
] | ||
exclude=[ | ||
{"insert_text": "&\"test_input_action\""}, | ||
] |
3 changes: 3 additions & 0 deletions
3
...s/scripts/completion/argument_options/string_literals/dont_add_string_name_input_event.gd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
func _input(event: InputEvent) -> void: | ||
event.is_action_pressed(➡) | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters