示例#1
0
 public override bool IsInsertionTrigger(
     SourceText text,
     int characterPosition,
     OptionSet options
     ) =>
 CompletionUtilities.IsTriggerAfterSpaceOrStartOfWordCharacter(
     text,
     characterPosition,
     options
     );
        public override bool IsInsertionTrigger(
            SourceText text,
            int characterPosition,
            OptionSet options
            )
        {
            var c = text[characterPosition];

            return(c == '<' ||
                   c == '"' ||
                   CompletionUtilities.IsTriggerAfterSpaceOrStartOfWordCharacter(
                       text,
                       characterPosition,
                       options
                       ));
        }
示例#3
0
 internal override bool IsInsertionTrigger(SourceText text, int insertedCharacterPosition, OptionSet options)
 {
     return(CompletionUtilities.IsTriggerAfterSpaceOrStartOfWordCharacter(text, insertedCharacterPosition, options));
 }