completions: Object names in signal handlers

This commit is contained in:
James Westman 2025-05-03 14:39:02 -05:00
parent 1205fc42ea
commit 67983aee2e
No known key found for this signature in database
GPG key ID: CE2DBA0ADB654EA6
3 changed files with 31 additions and 16 deletions

View file

@ -247,3 +247,11 @@ def decompile_signal(
line += ";"
ctx.print(line)
return gir
@completer(
[Signal],
[[(TokenType.PUNCTUATION, "(")]],
)
def signal_object_completer(ctx: CompletionContext):
yield from get_object_id_completions(ctx)