public AvalonEditCodeEditor(ISharedViewState sharedViewState, IFunctionsDetails functionsDetails) { _sharedViewState = sharedViewState; completionDatas = CompletionDataConverter.ConvertAutocompleteItemsToCompletionDatas( AutocompletionData.GetAutocompleteItemsForScripting(functionsDetails)); InitializeComponent(); _documents = new Dictionary <string, TextDocument>(); TextArea.TextView.LineTransformers.Add(_offsetColorizer); }
public AvalonEditCodeEditor(ISharedViewState sharedViewState, IAutocompleteProvider autocompleteProvider) { _sharedViewState = sharedViewState; _autocompleteProvider = autocompleteProvider; completionDatas = CompletionDataConverter.ConvertAutocompleteItemsToCompletionDatas( _autocompleteProvider.ScriptingAutocompleteItems.ToArray()); InitializeComponent(); _documents = new Dictionary <string, TextDocument>(); TextArea.TextView.LineTransformers.Add(_offsetColorizer); }