add signature help
This commit is contained in:
@@ -39,6 +39,9 @@ class _Completion(Visitor):
|
||||
def _append_unique(self, item: lsp.CompletionItem):
|
||||
# Avoid duplicate labels within the same file scan
|
||||
if not any(ci.label == item.label for ci in self._custom_functions):
|
||||
# For functions, attach a command to trigger signature help after completion
|
||||
if item.kind == lsp.CompletionItemKind.Function and item.command is None:
|
||||
item.command = lsp.Command(title="Trigger Signature Help", command="editor.action.triggerParameterHints")
|
||||
self._custom_functions.append(item)
|
||||
|
||||
def visit_command(self, command: Command):
|
||||
|
||||
Reference in New Issue
Block a user