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);
     }
 }
Example #2
0
 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);
     }
 }