Skip to main content

Interface ICodeAutocompleteProvider

Namespace: OptimaJet.Workflow.Core.Runtime.CodeAutocomplete

Assembly: OptimaJet.Workflow.Core.dll

Syntax
public interface ICodeAutocompleteProvider

Methods

AddVariablesToDefaultCompleterIfEnable(IEnumerable<AutocompleteVariable>)

add variables to DefaultAutocompleter. If DefaultAutocompleter is suppressed, nothing will happen. If DefaultAutocompleter is not initialized, init method will be called.

Declaration
void AddVariablesToDefaultCompleterIfEnable(IEnumerable<AutocompleteVariable> variables)
Parameters
TypeNameDescription
IEnumerable<AutocompleteVariable>variables

AddVariablesToDefaultCompleterIfEnable(string, Type)

add variables to DefaultAutocompleter. If DefaultAutocompleter is suppressed, nothing will happen. If DefaultAutocompleter is not initialized, init method will be called.

Declaration
void AddVariablesToDefaultCompleterIfEnable(string varName, Type varType)
Parameters
TypeNameDescription
stringvarName
TypevarType

Get(string, IEnumerable<string>, IEnumerable<AutocompleteVariable>)

Get autocomplete from all autocompleters that are already initialized

Declaration
HashSet<AutocompleteItem> Get(string pattern, IEnumerable<string> usings, IEnumerable<AutocompleteVariable> variables)
Parameters
TypeNameDescription
stringpatterntext for search (like "System.Thr")
IEnumerable<string>usingslist of usings (like "System", "System.Threading")
IEnumerable<AutocompleteVariable>variableslist of allow variables to autocomplete
Returns
TypeDescription
HashSet<AutocompleteItem>

InitCodeAutocomletersThatNoInitialized()

Declaration
void InitCodeAutocomletersThatNoInitialized()

RegisterCodeAutocompleters(params ICodeAutocompleter[])

add code autocompleters but not init

Declaration
void RegisterCodeAutocompleters(params ICodeAutocompleter[] completers)
Parameters
TypeNameDescription
OptimaJet.Workflow.Core.Runtime.CodeAutocomplete.ICodeAutocompleter[]completers

RunInitTask()

Run task with ICodeAutocompleteProvider.InitCodeAutocomletersThatNoInitialized()

Declaration
void RunInitTask()

Extension Methods