
Thank you for your quick response - what a great set of classes you have! The only catch I see is session.MatchOptions is readonly - your response alluded to "update the session.MatchOptions" - I was thinking of adding the two flags. Am I reading this wrong?
"Property or Indexer 'ICompletionSession.MatchOptions' cannot be assigned to -- it is read only"
using ActiproSoftware.Text.Languages.VB.Implementation;
using ActiproSoftware.Windows.Controls.SyntaxEditor.IntelliPrompt;
namespace BreezeWorkflowExpressionEditorService
{
public class CompletionService : VBCompletionProvider
{
protected override bool OnSessionOpening(ICompletionSession session)
{
base.OnSessionOpening(session);
session.MatchOptions += CompletionMatchOptions.IsCaseInsensitive | CompletionMatchOptions.UseShorthand;
return true;
}
}
}
Also, where would I register the service? (I am a db guy... please forgive my ignorance). I am using the ExpressionEditorService sample project on your web site if that makes it any easier...
(update - would it be in Service.cs constructor?)
public class ExpressionEditorService : IExpressionEditorService
{
private WorkflowDesigner designer;
private List<IExpressionEditorInstance> editors = new List<IExpressionEditorInstance>();
private static ISyntaxLanguage language = new VBExpressionEditorSyntaxLanguage();
static ExpressionEditorService()
{
AddCustomResourcesToApplication();
language.RegisterService<VBCompletionProvider>(new CompletionService());
}
Thanks in advance,
John
[Modified 9 years ago]