public override bool IsInsertionTrigger(
     SourceText text,
     int characterPosition,
     OptionSet options
     ) =>
 CompletionUtilities.IsTriggerCharacter(text, characterPosition, options) ||
 text[characterPosition] == ' ';
Example #2
0
        public override bool IsTriggerCharacter(SourceText text, int characterPosition, OptionSet options)
        {
            if (!options.GetOption(CSharpCompletionOptions.IncludeSnippets))
            {
                return(false);
            }

            return(CompletionUtilities.IsTriggerCharacter(text, characterPosition, options));
        }
 public override bool IsTriggerCharacter(SourceText text, int characterPosition, OptionSet options)
 {
     return(CompletionUtilities.IsTriggerCharacter(text, characterPosition, options));
 }
 internal override bool IsInsertionTrigger(SourceText text, int characterPosition, OptionSet options)
 {
     return(CompletionUtilities.IsTriggerCharacter(text, characterPosition, options) || text[characterPosition] == ' ');
 }
Example #5
0
 public override bool IsInsertionTrigger(SourceText text, int characterPosition, CompletionOptions options)
 => CompletionUtilities.IsTriggerCharacter(text, characterPosition, options);