update lsp_server

This commit is contained in:
Christoph Brandau
2025-07-31 16:19:09 +02:00
parent 44fd772151
commit 98e2d104a8
8 changed files with 299 additions and 200 deletions
+6
View File
@@ -24,6 +24,9 @@ class _Completion(Visitor):
def custom_functions(self) -> list[lsp.CompletionItem]:
return self._custom_functions
def reset(self):
self._custom_functions = []
def visit_command(self, command):
routine = command.routine
@@ -37,3 +40,6 @@ class _Completion(Visitor):
label=first_arg.value, kind=lsp.CompletionItemKind.Function
)
)
completion = _Completion()