Posted 14 years ago
by Craig
-
Varigence, Inc.
Version: 10.2.0531
Platform: .NET 4.0
Environment: Windows 7 (32-bit)
I have an application where I'm using the WPF SyntaxEditor and am displaying completion lists. It's working well except for two problems that I believe are bugs:
1. When I create a new CompletionItem (to add to the session's Items list), I give it a Text value in its constructor, but may also give it an autoCompletePreText and autoCompletePostText. My expectation from the documentation is that if I provide both, (as in new CompletionItem("Bob", new CommonImageSourceProvider(CommonImage.PropertyPublic, null, "(", ")"); ), and the user selects that intelliprompt item, they'll see (Bob) inserted into the editor. Instead, all I'm seeing is () - so the preText and the postText, with no regular Text in between. If this is the intended behavior, how can I get preText and postText to work with text inserted in between?
2. In the sample app I've sent off that repros this, I'm also seeing that after I double click on a completion item, the syntax editor throws a NullReferenceException and the application crashes.
Please let me know if you need more information. I am sending over a sample application that reproduces the issue.
Thanks,
-Craig
1. When I create a new CompletionItem (to add to the session's Items list), I give it a Text value in its constructor, but may also give it an autoCompletePreText and autoCompletePostText. My expectation from the documentation is that if I provide both, (as in new CompletionItem("Bob", new CommonImageSourceProvider(CommonImage.PropertyPublic, null, "(", ")"); ), and the user selects that intelliprompt item, they'll see (Bob) inserted into the editor. Instead, all I'm seeing is () - so the preText and the postText, with no regular Text in between. If this is the intended behavior, how can I get preText and postText to work with text inserted in between?
2. In the sample app I've sent off that repros this, I'm also seeing that after I double click on a completion item, the syntax editor throws a NullReferenceException and the application crashes.
Please let me know if you need more information. I am sending over a sample application that reproduces the issue.
Thanks,
-Craig