Workflow Engine .NET

Assembly: OptimaJet.Workflow.Core

Interface ICodeAutocompleteProvider

OptimaJet.Workflow.Core.Runtime.CodeAutocomplete.ICodeAutocompleteProvider

Provides access to code autocomplete providers and methods for registering, initializing, and querying completion data.

public interface ICodeAutocompleteProvider

Methods

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
variables
IEnumerable<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
varName
String
Variable name that should appear in autocomplete results.
varType
Type
Variable 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
pattern
String
Text pattern to match, for example System.Thr.
usings
IEnumerable<String>
Namespace aliases in scope, such as System or System.Threading.
variables
IEnumerable<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
completers
ICodeAutocompleter[]
Autocompleter instances to add to the provider collection.
void RunInitTask() #
Starts an asynchronous task that initializes registered autocompleters.

Derived Types