public bool TryCreateContext(ITextView textView, SnapshotPoint openingPoint, char openingBrace, char closingBrace, out IBraceCompletionContext context) { if (IsValidBraceCompletionContext(EditorServices.GetBufferInfo(openingPoint.Snapshot.TextBuffer), openingPoint)) { context = new BraceCompletionContext(); return(true); } else { context = null; return(false); } }
public bool TryCreateContext(ITextView textView, SnapshotPoint openingPoint, char openingBrace, char closingBrace, out IBraceCompletionContext context) { if (IsValidBraceCompletionContext(openingPoint)) { context = new BraceCompletionContext(); return(true); } else { context = null; return(false); } }