initial commit, 4.5 stable
Some checks failed
🔗 GHA / 📊 Static checks (push) Has been cancelled
🔗 GHA / 🤖 Android (push) Has been cancelled
🔗 GHA / 🍏 iOS (push) Has been cancelled
🔗 GHA / 🐧 Linux (push) Has been cancelled
🔗 GHA / 🍎 macOS (push) Has been cancelled
🔗 GHA / 🏁 Windows (push) Has been cancelled
🔗 GHA / 🌐 Web (push) Has been cancelled
Some checks failed
🔗 GHA / 📊 Static checks (push) Has been cancelled
🔗 GHA / 🤖 Android (push) Has been cancelled
🔗 GHA / 🍏 iOS (push) Has been cancelled
🔗 GHA / 🐧 Linux (push) Has been cancelled
🔗 GHA / 🍎 macOS (push) Has been cancelled
🔗 GHA / 🏁 Windows (push) Has been cancelled
🔗 GHA / 🌐 Web (push) Has been cancelled
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
[output]
|
||||
include=[
|
||||
; PackedScene
|
||||
{"display": "instantiate(…)"},
|
||||
]
|
@@ -0,0 +1,5 @@
|
||||
var list: Array
|
||||
|
||||
func spawn_npc() -> void:
|
||||
var scene: PackedScene = list.pick_random()
|
||||
scene.➡
|
@@ -0,0 +1,28 @@
|
||||
scene="res://completion/get_node/get_node.tscn"
|
||||
[output]
|
||||
include=[
|
||||
; Utility Functions
|
||||
{"display": "print(…)", "insert_text": "print("},
|
||||
|
||||
; Node
|
||||
{"display": "add_child(…)"},
|
||||
{"display": "owner"},
|
||||
{"display": "child_entered_tree"},
|
||||
|
||||
; GDScript: class_a.notest.gd
|
||||
{"display": "property_of_a"},
|
||||
{"display": "func_of_a()"},
|
||||
{"display": "signal_of_a"},
|
||||
|
||||
; GDScript: identifiers.gd
|
||||
{"display": "test_signal_1"},
|
||||
{"display": "test_signal_2"},
|
||||
{"display": "test_var_1"},
|
||||
{"display": "test_var_2"},
|
||||
{"display": "test_func_1(…)"},
|
||||
{"display": "test_func_2(…)"},
|
||||
{"display": "test_parameter_1"},
|
||||
{"display": "test_parameter_2"},
|
||||
{"display": "local_test_var_1"},
|
||||
{"display": "local_test_var_2"},
|
||||
]
|
@@ -0,0 +1,18 @@
|
||||
extends "res://completion/class_a.notest.gd"
|
||||
|
||||
signal test_signal_1(a)
|
||||
signal test_signal_2(a: int)
|
||||
|
||||
var test_var_1
|
||||
var test_var_2: int
|
||||
|
||||
func test_func_1(t):
|
||||
pass
|
||||
|
||||
func test_func_2(t: int) -> void:
|
||||
pass
|
||||
|
||||
func _init(test_parameter_1, test_parameter_2: String):
|
||||
var local_test_var_1
|
||||
var local_test_var_2: int
|
||||
print(t➡)
|
@@ -0,0 +1,28 @@
|
||||
scene="res://completion/get_node/get_node.tscn"
|
||||
[output]
|
||||
include=[
|
||||
; Utility Functions
|
||||
{"display": "print(…)", "insert_text": "print("},
|
||||
|
||||
; Node
|
||||
{"display": "add_child(…)"},
|
||||
{"display": "owner"},
|
||||
{"display": "child_entered_tree"},
|
||||
|
||||
; GDScript: class_a.notest.gd
|
||||
{"display": "property_of_a"},
|
||||
{"display": "func_of_a()"},
|
||||
{"display": "signal_of_a"},
|
||||
|
||||
; GDScript: identifiers.gd
|
||||
{"display": "test_signal_1"},
|
||||
{"display": "test_signal_2"},
|
||||
{"display": "test_var_1"},
|
||||
{"display": "test_var_2"},
|
||||
{"display": "test_func_1(…)"},
|
||||
{"display": "test_func_2(…)"},
|
||||
{"display": "test_parameter_1"},
|
||||
{"display": "test_parameter_2"},
|
||||
{"display": "local_test_var_1"},
|
||||
{"display": "local_test_var_2"},
|
||||
]
|
@@ -0,0 +1,18 @@
|
||||
extends "res://completion/class_a.notest.gd"
|
||||
|
||||
signal test_signal_1(a)
|
||||
signal test_signal_2(a: int)
|
||||
|
||||
var test_var_1
|
||||
var test_var_2: int
|
||||
|
||||
func test_func_1(t):
|
||||
pass
|
||||
|
||||
func test_func_2(t: int) -> void:
|
||||
pass
|
||||
|
||||
func _init(test_parameter_1, test_parameter_2: String):
|
||||
var local_test_var_1
|
||||
var local_test_var_2: int
|
||||
t➡
|
@@ -0,0 +1,28 @@
|
||||
scene="res://completion/get_node/get_node.tscn"
|
||||
[output]
|
||||
include=[
|
||||
; Utility Functions
|
||||
{"display": "print(…)", "insert_text": "print("},
|
||||
|
||||
; Node
|
||||
{"display": "add_child(…)"},
|
||||
{"display": "owner"},
|
||||
{"display": "child_entered_tree"},
|
||||
|
||||
; GDScript: class_a.notest.gd
|
||||
{"display": "property_of_a"},
|
||||
{"display": "func_of_a()"},
|
||||
{"display": "signal_of_a"},
|
||||
|
||||
; GDScript: identifiers.gd
|
||||
{"display": "test_signal_1"},
|
||||
{"display": "test_signal_2"},
|
||||
{"display": "test_var_1"},
|
||||
{"display": "test_var_2"},
|
||||
{"display": "test_func_1(…)"},
|
||||
{"display": "test_func_2(…)"},
|
||||
{"display": "test_parameter_1"},
|
||||
{"display": "test_parameter_2"},
|
||||
{"display": "local_test_var_1"},
|
||||
{"display": "local_test_var_2"},
|
||||
]
|
@@ -0,0 +1,22 @@
|
||||
# godotengine/godot#92226
|
||||
extends "res://completion/class_a.notest.gd"
|
||||
|
||||
signal test_signal_1(a)
|
||||
signal test_signal_2(a: int)
|
||||
|
||||
var test_var_1
|
||||
var test_var_2: int
|
||||
|
||||
func test_func_1(t):
|
||||
pass
|
||||
|
||||
func test_func_2(t: int) -> void:
|
||||
pass
|
||||
|
||||
func _init(test_parameter_1, test_parameter_2: String):
|
||||
var local_test_var_1
|
||||
var local_test_var_2: int
|
||||
print(t➡
|
||||
|
||||
if true:
|
||||
pass
|
@@ -0,0 +1,5 @@
|
||||
[output]
|
||||
include=[
|
||||
; String
|
||||
{"display": "begins_with(…)"},
|
||||
]
|
@@ -0,0 +1,9 @@
|
||||
class TestClass:
|
||||
func to_str(b: int):
|
||||
return str(b)
|
||||
|
||||
var a: TestClass
|
||||
|
||||
func _ready():
|
||||
a.to_str(10).➡
|
||||
pass
|
@@ -0,0 +1,5 @@
|
||||
[output]
|
||||
include=[
|
||||
; GDScript: class_a.notest.gd
|
||||
{"display": "func_of_a()"},
|
||||
]
|
@@ -0,0 +1,7 @@
|
||||
extends "res://completion/class_a.notest.gd"
|
||||
|
||||
func test():
|
||||
super.➡
|
||||
|
||||
if true:
|
||||
pass
|
@@ -0,0 +1,5 @@
|
||||
[output]
|
||||
include=[
|
||||
; GDScript: class_a.notest.gd
|
||||
{"display": "func_of_a()"},
|
||||
]
|
@@ -0,0 +1,7 @@
|
||||
extends "res://completion/class_a.notest.gd"
|
||||
|
||||
func test():
|
||||
super.f➡
|
||||
|
||||
if true:
|
||||
pass
|
@@ -0,0 +1,26 @@
|
||||
scene="res://completion/get_node/get_node.tscn"
|
||||
[output]
|
||||
exclude=[
|
||||
; Node
|
||||
{"display": "add_child(…)"},
|
||||
{"display": "owner"},
|
||||
{"display": "child_entered_tree"},
|
||||
{"display": "add_child(…)"},
|
||||
|
||||
; GDScript: class_a.notest.gd
|
||||
{"display": "property_of_a"},
|
||||
{"display": "func_of_a()"},
|
||||
{"display": "signal_of_a"},
|
||||
|
||||
; GDScript: no_completion_in_string.gd
|
||||
{"display": "test_signal_1"},
|
||||
{"display": "test_signal_2"},
|
||||
{"display": "test_var_1"},
|
||||
{"display": "test_var_2"},
|
||||
{"display": "test_func_1(…)"},
|
||||
{"display": "test_func_2(…)"},
|
||||
{"display": "test_parameter_1"},
|
||||
{"display": "test_parameter_2"},
|
||||
{"display": "local_test_var_1"},
|
||||
{"display": "local_test_var_2"},
|
||||
]
|
@@ -0,0 +1,19 @@
|
||||
# godotengine/godot#62945
|
||||
extends "res://completion/class_a.notest.gd"
|
||||
|
||||
signal test_signal_1(a)
|
||||
signal test_signal_2(a: int)
|
||||
|
||||
var test_var_1
|
||||
var test_var_2: int
|
||||
|
||||
func test_func_1(t):
|
||||
pass
|
||||
|
||||
func test_func_2(t: int) -> void:
|
||||
pass
|
||||
|
||||
func _init(test_parameter_1, test_parameter_2: String):
|
||||
var local_test_var_1
|
||||
var local_test_var_2: int
|
||||
var a = "➡"
|
@@ -0,0 +1,4 @@
|
||||
[output]
|
||||
include=[
|
||||
{"display": "test(x: int) -> void:", "insert_text": "test(x: int) -> void:"},
|
||||
]
|
@@ -0,0 +1,5 @@
|
||||
@abstract class A:
|
||||
@abstract func test(x: int) -> void
|
||||
|
||||
class B extends A:
|
||||
func ➡
|
@@ -0,0 +1,5 @@
|
||||
scene="res://completion/get_node/get_node.tscn"
|
||||
[output]
|
||||
include=[
|
||||
{"display": "_get(property: StringName) -> Variant:"},
|
||||
]
|
@@ -0,0 +1,3 @@
|
||||
extends Object
|
||||
|
||||
func _get➡
|
@@ -0,0 +1,13 @@
|
||||
scene="res://completion/get_node/get_node.tscn"
|
||||
[output]
|
||||
include=[
|
||||
; GDScript: class_a.notest.gd
|
||||
{"display": "func_of_a():"},
|
||||
{"display": "func_of_a_args(a: int):"},
|
||||
{"display": "func_of_a_callable(call := func():
|
||||
var x_of_a = 10):"}
|
||||
]
|
||||
exclude=[
|
||||
; GDScript: class_a.notest.gd
|
||||
{"display": "_static_init() -> void:"},
|
||||
]
|
@@ -0,0 +1,3 @@
|
||||
extends "res://completion/class_a.notest.gd"
|
||||
|
||||
func ➡
|
@@ -0,0 +1,14 @@
|
||||
scene="res://completion/get_node/get_node.tscn"
|
||||
[output]
|
||||
include=[
|
||||
; GDScript: class_a.notest.gd
|
||||
{"display": "_static_init() -> void:"},
|
||||
{"display": "func_of_a_static():"},
|
||||
]
|
||||
exclude=[
|
||||
; GDScript: class_a.notest.gd
|
||||
{"display": "func_of_a():"},
|
||||
{"display": "func_of_a_args(a: int):"},
|
||||
{"display": "func_of_a_callable(call := func():
|
||||
var x_of_a = 10):"},
|
||||
]
|
@@ -0,0 +1,3 @@
|
||||
extends "res://completion/class_a.notest.gd"
|
||||
|
||||
static func ➡
|
@@ -0,0 +1,10 @@
|
||||
scene="res://completion/get_node/get_node.tscn"
|
||||
[output]
|
||||
include=[
|
||||
; GDScript: class_a.notest.gd
|
||||
{"display": "_func_of_a_underscore():"},
|
||||
]
|
||||
exclude=[
|
||||
; GDScript: class_a.notest.gd
|
||||
{"display": "_static_init() -> void:"},
|
||||
]
|
@@ -0,0 +1,3 @@
|
||||
extends "res://completion/class_a.notest.gd"
|
||||
|
||||
func _➡
|
21
modules/gdscript/tests/scripts/completion/common/self.cfg
Normal file
21
modules/gdscript/tests/scripts/completion/common/self.cfg
Normal file
@@ -0,0 +1,21 @@
|
||||
scene="res://completion/get_node/get_node.tscn"
|
||||
[output]
|
||||
include=[
|
||||
; Node
|
||||
{"display": "add_child(…)"},
|
||||
{"display": "owner"},
|
||||
{"display": "child_entered_tree"},
|
||||
|
||||
; GDScript: class_a.notest.gd
|
||||
{"display": "property_of_a"},
|
||||
{"display": "func_of_a()"},
|
||||
{"display": "signal_of_a"},
|
||||
|
||||
; GDScript: self.gd
|
||||
{"display": "test_signal_1"},
|
||||
{"display": "test_signal_2"},
|
||||
{"display": "test_var_1"},
|
||||
{"display": "test_var_2"},
|
||||
{"display": "test_func_1(…)"},
|
||||
{"display": "test_func_2(…)"},
|
||||
]
|
17
modules/gdscript/tests/scripts/completion/common/self.gd
Normal file
17
modules/gdscript/tests/scripts/completion/common/self.gd
Normal file
@@ -0,0 +1,17 @@
|
||||
extends "res://completion/class_a.notest.gd"
|
||||
|
||||
signal test_signal_1(a)
|
||||
signal test_signal_2(a: int)
|
||||
|
||||
var test_var_1
|
||||
var test_var_2: int
|
||||
|
||||
func test_func_1(t):
|
||||
pass
|
||||
|
||||
func test_func_2(t: int) -> void:
|
||||
pass
|
||||
|
||||
func _init():
|
||||
self.➡
|
||||
pass
|
Reference in New Issue
Block a user