Exemplo n.º 1
0
 public static bool IsStartingNewWord(SourceText text, int characterPosition)
 {
     return(CommonCompletionUtilities.IsStartingNewWord(
                text,
                characterPosition,
                IsWordStartCharacter,
                IsWordCharacter
                ));
 }
Exemplo n.º 2
0
        internal static bool IsTriggerCharacter(SourceText text, int characterPosition)
        {
            // Bring up completion when the user types a quote (i.e.: #r "), or if they type a slash
            // path separator character, or if they type a comma (#r "foo,version...").
            //
            // Also, if they're starting a word.  i.e. #r "c:\W
            var ch = text[characterPosition];

            return(ch == '"' || ch == '\\' || ch == ',' ||
                   CommonCompletionUtilities.IsStartingNewWord(text, characterPosition, char.IsLetter, char.IsLetterOrDigit));
        }