public override bool IsCommitCharacter(CompletionItem completionItem, char ch, string textTypedSoFar) { var symbolItem = completionItem as SymbolCompletionItem; if (symbolItem != null && symbolItem.Context.IsInImportsDirective) { // If the user is writing "using S" then the only commit characters are <dot> and // <semicolon>, as they might be typing a using alias. return(ch == '.' || ch == ';'); } return(CompletionUtilities.IsCommitCharacter(completionItem, ch, textTypedSoFar)); }
public override bool IsCommitCharacter(CompletionItem completionItem, char ch, string textTypedSoFar) { if (ch == '{' && completionItem.DisplayText.Contains('{')) { return(false); } if (ch == '(' && completionItem.DisplayText.Contains('(')) { return(false); } return(CompletionUtilities.IsCommitCharacter(completionItem, ch, textTypedSoFar)); }
public override bool IsCommitCharacter(CompletionItem completionItem, char ch, string textTypedSoFar) { return(CompletionUtilities.IsCommitCharacter(completionItem, ch, textTypedSoFar)); }