Interface ICodeAutocompleteProvider
OptimaJet.Workflow.Core.Runtime.CodeAutocomplete.ICodeAutocompleteProvider
Provides access to code autocomplete providers and methods for registering, initializing, and querying completion data.
Namespace: OptimaJet.Workflow.Core.Runtime.CodeAutocomplete
public interface ICodeAutocompleteProviderMethods
void AddVariablesToDefaultCompleterIfEnable(IEnumerable<AutocompleteVariable> variables) #Adds the provided variables to the DefaultAutocompleter when the default autocompleter is available. If the DefaultAutocompleter is not added, the method does nothing. If it is available but not yet initialized, this method initializes it before adding variables.
Parameters
Name
Type
Description
variablesIEnumerable<AutocompleteVariable>Variables to add to the default autocomplete source.
void AddVariablesToDefaultCompleterIfEnable(string varName, Type varType) #Adds a variable to the DefaultAutocompleter when the default autocompleter is available. If the DefaultAutocompleter is not added, the method does nothing. If it is available but not yet initialized, this method initializes it before adding the variable.
Parameters
Name
Type
Description
varNameStringVariable name that should appear in autocomplete results.
varTypeTypeVariable runtime type used for completion candidates.
HashSet<AutocompleteItem> Get(string pattern, IEnumerable<string> usings, IEnumerable<AutocompleteVariable> variables) #Gets completion entries from all autocompleters that are already initialized.
Parameters
Name
Type
Description
patternStringText pattern to match, for example
System.Thr.usingsIEnumerable<String>Namespace aliases in scope, such as
System or System.Threading.variablesIEnumerable<AutocompleteVariable>Variables that can be suggested during completion.
Returns
Type
Description
HashSet<AutocompleteItem>A set of matching autocomplete items.
void InitCodeAutocomletersThatNoInitialized() #Initializes each registered autocompleter that is not yet initialized.
void RegisterCodeAutocompleters(params ICodeAutocompleter[] completers) #Registers additional code autocompleters without initializing them.
Parameters
Name
Type
Description
completersICodeAutocompleter[]Autocompleter instances to add to the provider collection.
void RunInitTask() #Starts an asynchronous task that initializes registered autocompleters.