Package io.deephaven.lang.completion
Interface CustomCompletion
- All Known Implementing Classes:
DelegatingCustomCompletion
public interface CustomCompletion
Allows applications to offer custom autocomplete suggestions. Methods are all default with no implementation, so that
new operations can be added later.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Factory interface for CustomCompletion instances, allowing the autocomplete internals to manage scope directly of CustomCompletion instances. -
Method Summary
Modifier and TypeMethodDescriptiondefault void
methodArgumentCompletion
(ChunkerCompleter completer, ChunkerInvoke node, Node replaceNode, CompletionRequest request, ChunkerCompleter.SearchDirection direction, Collection<CompletionItem.Builder> results) User's cursor is within the method arguments, provide autocomplete suggestions for cursor position.resolveScopeType
(IsScope scope) Return the type of the scoped value if known.default Optional<TableDefinition>
resolveTableDefinition
(ChunkerInvoke invoke, CompletionRequest result) Returns the definition of the table that would be created by the method call if known.
-
Method Details
-
methodArgumentCompletion
default void methodArgumentCompletion(ChunkerCompleter completer, ChunkerInvoke node, Node replaceNode, CompletionRequest request, ChunkerCompleter.SearchDirection direction, Collection<CompletionItem.Builder> results) User's cursor is within the method arguments, provide autocomplete suggestions for cursor position. -
resolveScopeType
Return the type of the scoped value if known. -
resolveTableDefinition
default Optional<TableDefinition> resolveTableDefinition(ChunkerInvoke invoke, CompletionRequest result) Returns the definition of the table that would be created by the method call if known.
-