Added working version for user-defined function autocompletion

This commit is contained in:
Sat 2025-05-08 06:22:05 -03:00
parent a2aefab4c7
commit fc4df4b17d
11 changed files with 124 additions and 9 deletions

View file

@ -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:"},
]

View file

@ -0,0 +1,3 @@
extends "res://completion/class_a.notest.gd"
func

View file

@ -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):"},
]

View file

@ -0,0 +1,3 @@
extends "res://completion/class_a.notest.gd"
static func

View file

@ -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:"},
]

View file

@ -0,0 +1,3 @@
extends "res://completion/class_a.notest.gd"
func _