You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-24 15:26:15 +00:00
Merge pull request #94082 from HolonProduction/completion-force
Autocompletion: Rework argument options string literal completion
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
[output]
|
||||
include=[
|
||||
{"insert_text": "\"property_of_a\""},
|
||||
{"insert_text": "\"name\""},
|
||||
]
|
||||
@@ -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, "➡")
|
||||
@@ -11,11 +11,15 @@ include=[
|
||||
{"display": "func_of_a"},
|
||||
{"display": "signal_of_a"},
|
||||
|
||||
; GDScript: self.gd
|
||||
; 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,25 @@
|
||||
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: 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"},
|
||||
]
|
||||
@@ -12,5 +12,7 @@ func test_func_1(t):
|
||||
func test_func_2(t: int) -> void:
|
||||
pass
|
||||
|
||||
func _init():
|
||||
func _init(test_parameter_1, test_parameter_2: String):
|
||||
var local_test_var_1
|
||||
var local_test_var_2: int
|
||||
t➡
|
||||
@@ -0,0 +1,25 @@
|
||||
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: 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,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 = "➡"
|
||||
@@ -14,3 +14,4 @@ func test_func_2(t: int) -> void:
|
||||
|
||||
func _init():
|
||||
self.➡
|
||||
pass
|
||||
|
||||
@@ -5,4 +5,5 @@ extends CPUParticles2D
|
||||
@export_subgroup("Test Subgroup")
|
||||
|
||||
func _init():
|
||||
➡
|
||||
t➡
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user