
Well, I have it now working partially. After adding "[" to the allowed characters, it showed up, however, at first it threw me off that the items are apparently sorted on the AutoCompletePreText and not on the caption, which were both different in my case. I have now run into another problem: if I select the item in the completion list it enters and patch of whitespace into the editor. If I try to delete that, the following exception is thrown:
>>
System.ArgumentOutOfRangeException was unhandled
Message=Index and length must refer to a location within the string.
Parameter name: length
Source=mscorlib
ParamName=length
StackTrace:
at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)
at #PZc.#VZc.ToString(Int32 startOffset, Int32 endOffset)
at ActiproSoftware.Text.Implementation.TextDocumentBase.#O7c(#g7b textChange)
at #Q2b.#g7b.Apply()
at ActiproSoftware.Text.Implementation.TextDocumentBase.ReplaceText(ITextChangeType type, Int32 offset, Int32 length, String text, ITextChangeOptions options)
at ActiproSoftware.Text.Implementation.TextDocumentBase.DeleteText(ITextChangeType type, Int32 offset, Int32 length, ITextChangeOptions options)
at ActiproSoftware.Windows.Controls.SyntaxEditor.EditActions.BackspaceAction.Execute(IEditorView view)
at ActiproSoftware.Windows.Controls.SyntaxEditor.Primitives.EditorView.ExecuteEditAction(IEditAction action)
at ActiproSoftware.Windows.Controls.SyntaxEditor.Implementation.EditActionBase.#Bfc(Object sender, ExecutedRoutedEventArgs e)
at System.Windows.Input.CommandBinding.OnExecuted(Object sender, ExecutedRoutedEventArgs e)
<<
I cut off the last part of the stacktract as it was quite long. It will try and create a repro for this.
Regards,
Robert