adjsut completion Items

This commit is contained in:
Christoph Brandau
2025-07-31 09:38:02 +02:00
parent ed045aa459
commit d90f9b5425
2 changed files with 8 additions and 5 deletions
+3 -1
View File
@@ -29,7 +29,9 @@ class _Completion(Visitor):
if routine.contents == "proc" and command.args:
first_arg = command.args[0]
if hasattr(first_arg, "value"):
if hasattr(first_arg, "value") and not any(
item.label == first_arg.value for item in self._custom_functions
):
self._custom_functions.append(
lsp.CompletionItem(
label=first_arg.value, kind=lsp.CompletionItemKind.Function